diff options
-rw-r--r-- | .emacs.d/init-custom.el | 3 | ||||
-rw-r--r-- | .emacs.d/init.el | 6 | ||||
-rw-r--r-- | .pandoc/templates/pessay.latex (renamed from .pandoc/templates/default.latex) | 0 |
3 files changed, 8 insertions, 1 deletions
diff --git a/.emacs.d/init-custom.el b/.emacs.d/init-custom.el index 22b3ebd5..ccf4a827 100644 --- a/.emacs.d/init-custom.el +++ b/.emacs.d/init-custom.el @@ -135,7 +135,8 @@ (projectile-project-name))))) '(safe-local-variable-values (quote - ((eval spw/writing-toggle) + ((eval pandoc-set-write "latex") + (eval spw/writing-toggle) (indent-tabs-mode . t\,)))) '(smart-tab-disabled-major-modes (quote (org-mode term-mode latex-mode message-mode))) '(smart-tab-using-hippie-expand nil) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 74130f69..44de1ac0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1087,6 +1087,12 @@ ("Europe/Paris" "Paris") ("Asia/Seoul" "Seoul")))) +;; make it easier to compile to PDF with pandoc + +(use-package pandoc-mode + :ensure + :init (add-hook 'markdown-mode-hook 'conditionally-turn-on-pandoc)) + ;;;; ---- functions ---- diff --git a/.pandoc/templates/default.latex b/.pandoc/templates/pessay.latex index 9503b04d..9503b04d 100644 --- a/.pandoc/templates/default.latex +++ b/.pandoc/templates/pessay.latex |