org
authorJames Richardson <james@jamestechnotes.com>
Thu, 2 Mar 2017 13:55:07 +0000 (08:55 -0500)
committerJames Richardson <james@jamestechnotes.com>
Thu, 2 Mar 2017 13:55:07 +0000 (08:55 -0500)
.emacs.d/config/org.el

index aef921724b1e2903c82793a8dd4f070528e5ec58..1f32763a21d48e6e0382dc3601c9cf69045d9778 100644 (file)
@@ -1,4 +1,5 @@
 ;; org mode
+(require 'org)
 ;; required in upper level, before this file gets sourced.
 ;; The idea is I don't need this if I don't have my org files.
 (load-library "org-compat")
 ;;       (setq org-mobile-directory "~/tmp")
 ;;       (setq org-mobile-inbox-for-pull "~/tmp/MobileInbox.org")))
 
+(setq org-file-apps org-file-apps-defaults-gnu)
+(delete '("\\.pdf\\'" . default) org-file-apps)
+(add-to-list 'org-file-apps '(("\\.pdf\\'" . "evince \"%s\"")))
+
 ;; setup todo things.
 (setq org-todo-keywords
       '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!/!)")
 (setq split-width-threshold 120)
 (setq org-agenda-skip-additional-timestamps-same-entry t)
 (setq org-table-use-standard-references (quote from))
-;;(setq org-file-apps (quote ((auto-mode .emacs)
-;;                          ("\\.m\\'" . system)
-;;                          ("\\.x?html?\\'" . system)
-;;                          ("\\.pdf\\'" . system))))
 (setq org-agenda-window-setup 'current-window)
 (setq org-clone-delete-id t)
 (setq org-cycle-include-plain-lists t)