2020-02-19 23:07:30 +00:00
|
|
|
;;; funcs.el --- pandoc Layer functions File for Spacemacs
|
2016-09-07 16:48:11 +00:00
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2016-09-07 16:48:11 +00:00
|
|
|
;;
|
|
|
|
;; Author: Christoph Paulik <cpaulik@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
|
|
|
(defun spacemacs/run-pandoc ()
|
|
|
|
"Start pandoc for the buffer and open the menu"
|
|
|
|
(interactive)
|
2018-03-12 22:59:06 +00:00
|
|
|
;; only run pandoc-mode if not active, as it resets pandoc--local-settings
|
|
|
|
(if (not (bound-and-true-p pandoc-mode)) (pandoc-mode))
|
2016-09-07 16:48:11 +00:00
|
|
|
(pandoc-main-hydra/body))
|