From f864f7296a3d2f818ad2863c6fedd56a5cadaade Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 25 Jul 2020 16:41:12 -0400 Subject: [PATCH] Open PDFs from org mode links in Emacs --- emacs/init.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index d7c56af..f22b847 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -1555,8 +1555,12 @@ Include a timestamp when TODO entries are closed: Tell Emacs how to open file links of various types: #+BEGIN_SRC emacs-lisp (with-eval-after-load 'org - (add-to-list 'org-file-apps '(directory . emacs)) - (add-to-list 'org-file-apps '("log" . emacs))) + (setq org-file-apps '(("log" . emacs) + (auto-mode . emacs) + (directory . emacs) + ("\\.pdf\\'" . emacs) + ("\\.mm\\'" . default) + ("\\.x?html?\\'" . default)))) #+END_SRC A function to add ids to every heading in an Org file: