Add function & binding to export pdf from org-src buffers
This commit is contained in:
parent
9008ef0138
commit
e1509b0f3c
@ -161,7 +161,8 @@
|
|||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:defer
|
:defer
|
||||||
:bind (:map org-mode-map ("C-z" . org-latex-export-to-pdf))
|
:bind ((:map org-mode-map ("C-z" . org-latex-export-to-pdf))
|
||||||
|
(:map org-src-mode-map ("C-z" . org-src-export-to-pdf)))
|
||||||
:config
|
:config
|
||||||
;; Make windmove work in org-mode:
|
;; Make windmove work in org-mode:
|
||||||
(add-hook 'org-shiftup-final-hook 'windmove-up)
|
(add-hook 'org-shiftup-final-hook 'windmove-up)
|
||||||
@ -174,6 +175,9 @@
|
|||||||
(visual-line-mode)
|
(visual-line-mode)
|
||||||
(setq word-wrap t)))
|
(setq word-wrap t)))
|
||||||
|
|
||||||
|
(defun org-src-export-to-pdf ()
|
||||||
|
(interactive)
|
||||||
|
(org-src-in-org-buffer (org-latex-export-to-pdf)))
|
||||||
(setq org-confirm-babel-evaluate nil)
|
(setq org-confirm-babel-evaluate nil)
|
||||||
(add-to-list 'org-babel-load-languages '(dot . t))
|
(add-to-list 'org-babel-load-languages '(dot . t))
|
||||||
(add-to-list 'org-src-lang-modes '("dot" . graphviz-dot))
|
(add-to-list 'org-src-lang-modes '("dot" . graphviz-dot))
|
||||||
|
Loading…
Reference in New Issue
Block a user