From a734f6482d255724e984636e605074d76a48a97c Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 8 Aug 2020 18:04:45 +0200 Subject: [PATCH] Do not open .org files in split window --- .emacs.d/config.org | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index fe6b2a3..d6651d9 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -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