summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-04-02 23:30:39 -0400
committerKyle Meyer <kyle@kyleam.com>2014-04-02 23:30:39 -0400
commit58e3d8943f099fa9db9985153dd9d368b22a41d8 (patch)
tree26c97c3a50a868e600f0d505a7b018c8f262d047 /bog.el
parent6a09d391ef40e1b919282ee272d0292755fc3af9 (diff)
downloadbog-58e3d8943f099fa9db9985153dd9d368b22a41d8.tar.gz
Use org-open-file to open PDFs
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/bog.el b/bog.el
index a895908..07c689b 100644
--- a/bog.el
+++ b/bog.el
@@ -140,11 +140,6 @@ This is only meaningful if `bog-find-citekey-bib-func' set to
:group 'bog
:type 'string)
-(defcustom bog-pdf-opener "xdg-open"
- "Program to open PDF files with."
- :group 'bog
- :type 'string)
-
(defcustom bog-pdf-file-name-separators '("-" "_")
"Characters allowed to follow the citekey in PDF file names.
When `bog-find-citekey-pdf' is run on <citekey>, it will find
@@ -308,7 +303,7 @@ text under point if it matches `bog-citekey-format' or using
"Select PDF file: "
citekey-pdfs-names)
bog-pdf-directory))))
- (start-process "bog-pdf" nil bog-pdf-opener citekey-pdf)))
+ (org-open-file citekey-pdf)))
(defun bog-citekey-pdfs (citekey)
(let* ((patterns (--map (concat it "*") bog-pdf-file-name-separators))