diff --git a/.emacs.d/init.el b/.emacs.d/init.el index efe21ab..4e0c1df 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -161,7 +161,7 @@ (use-package org :defer - :bind ((:map org-mode-map ("C-z" . org-latex-export-to-pdf)) + :bind ((:map org-mode-map ("C-z" . org-latex-export-to-pdf-no-kr)) (:map org-src-mode-map ("C-z" . org-src-export-to-pdf))) :config ;; Make windmove work in org-mode: @@ -178,9 +178,13 @@ (defun org-latex-open-pdf () (interactive) (call-process "evince" nil 0 nil (org-latex-export-to-pdf))) + (defun org-latex-export-to-pdf-no-kr () + (interactive) + (org-latex-export-to-pdf) + (pop kill-ring)) ; remove most recent element of kill ring (defun org-src-export-to-pdf () (interactive) - (org-src-in-org-buffer (org-latex-export-to-pdf))) + (org-src-in-org-buffer (org-latex-export-to-pdf-no-kr))) (setq org-confirm-babel-evaluate nil) (org-babel-do-load-languages 'org-babel-load-languages