Set pandoc-data-dir
Also move defun to funcs.el
This commit is contained in:
parent
d5baec4b44
commit
6bb4416585
16
layers/+tools/pandoc/funcs.el
Normal file
16
layers/+tools/pandoc/funcs.el
Normal file
|
@ -0,0 +1,16 @@
|
|||
;;; packages.el --- pandoc Layer functions File for Spacemacs
|
||||
;;
|
||||
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
||||
;;
|
||||
;; 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)
|
||||
(pandoc-mode)
|
||||
(pandoc-main-hydra/body))
|
|
@ -21,15 +21,10 @@
|
|||
:commands spacemacs/run-pandoc
|
||||
:config
|
||||
(progn
|
||||
(defun spacemacs/run-pandoc ()
|
||||
"Start pandoc for the buffer and open the menu"
|
||||
(interactive)
|
||||
(pandoc-mode)
|
||||
(pandoc-main-hydra/body))
|
||||
(setq pandoc-data-dir (concat spacemacs-cache-directory "pandoc/"))
|
||||
(add-hook 'pandoc-mode-hook 'pandoc-load-default-settings))
|
||||
:init
|
||||
(progn
|
||||
(spacemacs/set-leader-keys "P/" 'spacemacs/run-pandoc))))
|
||||
(spacemacs/set-leader-keys "P/" 'spacemacs/run-pandoc)))
|
||||
|
||||
(defun pandoc/init-ox-pandoc ()
|
||||
(use-package ox-pandoc
|
||||
|
|
Loading…
Reference in a new issue