Browse Source

Do not open .org files in split window

master
Riyyi 4 years ago
parent
commit
a734f6482d
  1. 16
      .emacs.d/config.org

16
.emacs.d/config.org

@ -751,6 +751,9 @@ Setup file backups versioning.
(org-return-follows-link t) (org-return-follows-link t)
(org-src-fontify-natively t) (org-src-fontify-natively t)
(org-src-window-setup 'current-window) (org-src-window-setup 'current-window)
:config
;; Do not open .org files in a split window
(add-to-list 'org-link-frame-setup '(file . find-file))
) )
;; Enable syntax highlighting when exporting to .pdf ;; Enable syntax highlighting when exporting to .pdf
@ -766,14 +769,11 @@ Setup file backups versioning.
:config :config
;; Add minted package to every LaTeX header ;; Add minted package to every LaTeX header
(add-to-list 'org-latex-packages-alist '("" "minted")) (add-to-list 'org-latex-packages-alist '("" "minted"))
;; Append -shell-escape to every element in org-latex-pdf-process ;; Append -shell-escape so pdflatex exports minted correctly
(setq org-latex-pdf-process (add-to-list 'org-latex-pdf-process (replace-regexp-in-string
(mapcar "%latex "
(lambda (s) "%latex -shell-escape "
(if (not (string-match-p "-shell-escape" s)) (car org-latex-pdf-process)))
(replace-regexp-in-string "%latex " "%latex -shell-escape " s)
s))
org-latex-pdf-process))
) )
#+END_SRC #+END_SRC

Loading…
Cancel
Save