Do not open .org files in split window

This commit is contained in:
Riyyi
2020-08-08 18:04:45 +02:00
parent 01a9b74c66
commit a734f6482d
+8 -8
View File
@@ -751,6 +751,9 @@ Setup file backups versioning.
(org-return-follows-link t)
(org-src-fontify-natively t)
(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
@@ -766,14 +769,11 @@ Setup file backups versioning.
:config
;; Add minted package to every LaTeX header
(add-to-list 'org-latex-packages-alist '("" "minted"))
;; Append -shell-escape to every element in org-latex-pdf-process
(setq org-latex-pdf-process
(mapcar
(lambda (s)
(if (not (string-match-p "-shell-escape" s))
(replace-regexp-in-string "%latex " "%latex -shell-escape " s)
s))
org-latex-pdf-process))
;; Append -shell-escape so pdflatex exports minted correctly
(add-to-list 'org-latex-pdf-process (replace-regexp-in-string
"%latex "
"%latex -shell-escape "
(car org-latex-pdf-process)))
)
#+END_SRC