diff options
Diffstat (limited to 'exwm.org')
-rw-r--r-- | exwm.org | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -354,7 +354,9 @@ (defun jao-exwm-pdf-zathura-close-all () (interactive) (dolist (b (jao-zathura--buffers)) - (ignore-errors (with-current-buffer b (jao-exwm--send-str "q")))) + (ignore-errors + (switch-to-buffer b) + (jao-exwm--send-str "q"))) t) (defun jao-exwm-zathura-goto-org (&optional arg) @@ -381,7 +383,7 @@ (defun jao-exwm-pdf-enable-zathura () (interactive) - (add-hook 'kill-emacs-query-functions #'jao-exwm-pdf-zathura-close-all) + (add-hook 'kill-emacs-query-functions #'jao-exwm-pdf-zathura-close-all t) (setq jao-org-open-pdf-fun #'jao-zathura-open-doc) (setq jao-org-links-pdf-store-fun #'jao-exwm-org-store-zathura-link) (setq jao-open-doc-fun #'jao-zathura-open-doc)) |