Created
July 31, 2014 09:36
-
-
Save dsjt/c3e9239c338adcbb8161 to your computer and use it in GitHub Desktop.
view-pdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun view-pdf() | |
(interactive) | |
(let ((pdf-file (concat (car (split-string (buffer-file-name) "\\.")) ".pdf")) | |
(viewer pdf-viewer)) | |
(start-process "*view-pdf*" nil viewer pdf-file))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment