Emacs: org-mode pdf reader from tool-pdf
parent
fd5c7caac7
commit
1316e67783
|
@ -9,13 +9,14 @@
|
||||||
;; Set PDF association in Org-mode (was Evince by default).
|
;; Set PDF association in Org-mode (was Evince by default).
|
||||||
(eval-after-load "org"
|
(eval-after-load "org"
|
||||||
'(progn
|
'(progn
|
||||||
|
(require 'tool-pdf)
|
||||||
;; Change .pdf association directly within the alist
|
;; Change .pdf association directly within the alist
|
||||||
(setcdr (assoc "\\.pdf\\'" org-file-apps) "zathura --fork %s")))
|
(setcdr (assoc "\\.pdf\\'" org-file-apps)
|
||||||
|
(concat pdf-viewer " " (mapconcat 'identity pdf-viewer-args " ")))))
|
||||||
|
|
||||||
(add-hook
|
(add-hook
|
||||||
'org-mode-hook
|
'org-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(auto-fill-mode -1)
|
(auto-fill-mode -1)))
|
||||||
))
|
|
||||||
|
|
||||||
(provide 'mode-org)
|
(provide 'mode-org)
|
||||||
|
|
Loading…
Reference in New Issue