Set pandoc-data-dir

Also move defun to funcs.el
This commit is contained in:
Eivind Fonn 2016-09-07 18:48:11 +02:00
parent d5baec4b44
commit 6bb4416585
2 changed files with 18 additions and 7 deletions

View 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))

View file

@ -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