summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-01-01 13:27:56 +0530
committerArun Isaac2022-10-01 01:11:34 +0530
commita44ee04169ef07861a4c2afa81d0c38caf32a383 (patch)
tree9d037c48dcaedc0d1229f6e1e30597f6a80d65f5
parent0838c414088eb665847153db47a326bb83c8761b (diff)
downloadksh-reports-a44ee04169ef07861a4c2afa81d0c38caf32a383.tar.gz
ksh-reports-a44ee04169ef07861a4c2afa81d0c38caf32a383.tar.lz
ksh-reports-a44ee04169ef07861a4c2afa81d0c38caf32a383.zip
Open generated PDF using org-open-file.
Printing from Emacs doesn't work well in Windows. So, we use org-open-file, which hopefully opens in the default PDF reader. * ksh-forms.el (forms-print): Use org-open-file instead of find-file.
-rw-r--r--ksh-forms.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/ksh-forms.el b/ksh-forms.el
index da6d047..33776b1 100644
--- a/ksh-forms.el
+++ b/ksh-forms.el
@@ -73,7 +73,7 @@
(defun forms-print ()
(interactive)
- (find-file (org-to-pdf (funcall form-to-org))))
+ (org-open-file (org-to-pdf (funcall form-to-org))))
(setq org-latex-compiler "xelatex")