Open PDFs from org mode links in Emacs

This commit is contained in:
Jeremy Dormitzer 2020-07-25 16:41:12 -04:00
parent 58056bb367
commit f864f7296a

View File

@ -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: