From a44ee04169ef07861a4c2afa81d0c38caf32a383 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 1 Jan 2021 13:27:56 +0530 Subject: 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. --- ksh-forms.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3