2015-04-09 17:08:25 +00:00
|
|
|
;;; packages.el --- pandoc Layer packages File for Spacemacs
|
|
|
|
;;
|
2018-01-04 07:00:25 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2015-04-09 17:08:25 +00:00
|
|
|
;;
|
|
|
|
;; Author: Christoph Paulik <cpaulik@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2015-09-07 05:05:44 +00:00
|
|
|
(setq pandoc-packages
|
|
|
|
'(pandoc-mode
|
|
|
|
ox-pandoc
|
|
|
|
))
|
2015-04-09 17:08:25 +00:00
|
|
|
|
|
|
|
(defun pandoc/init-pandoc-mode ()
|
|
|
|
"Initialize my package"
|
|
|
|
(use-package pandoc-mode
|
|
|
|
:defer t
|
|
|
|
:commands spacemacs/run-pandoc
|
|
|
|
:config
|
|
|
|
(progn
|
2016-09-07 16:48:11 +00:00
|
|
|
(setq pandoc-data-dir (concat spacemacs-cache-directory "pandoc/"))
|
2015-04-22 03:51:30 +00:00
|
|
|
(add-hook 'pandoc-mode-hook 'pandoc-load-default-settings))
|
2015-04-09 17:08:25 +00:00
|
|
|
:init
|
2016-09-07 16:48:11 +00:00
|
|
|
(spacemacs/set-leader-keys "P/" 'spacemacs/run-pandoc)))
|
2015-09-07 05:05:44 +00:00
|
|
|
|
|
|
|
(defun pandoc/init-ox-pandoc ()
|
|
|
|
(use-package ox-pandoc
|
|
|
|
:defer t
|
|
|
|
:init
|
2015-09-29 05:07:57 +00:00
|
|
|
(with-eval-after-load 'org (require 'ox-pandoc))))
|