From c595fe2eb825e933b42500eac433816a492c459b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 28 Feb 2018 17:18:14 -0500 Subject: [PATCH] lang/org: don't auto-kill agenda buffers #429 There is always doom/cleanup-session or :cleanup as an alternative. --- modules/lang/org/config.el | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index a9dc2b434..6765d8a04 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -283,14 +283,6 @@ between the two." ;; Don't open separate windows (map-put org-link-frame-setup 'file 'find-file) - (defun +org|cleanup-agenda-files () - "Close leftover agenda buffers after they've been indexed by org-agenda." - (cl-loop for file in org-agenda-files - for buf = (get-file-buffer file) - if (and file (not (get-buffer-window buf))) - do (kill-buffer buf))) - (add-hook 'org-agenda-finalize-hook #'+org|cleanup-agenda-files) - ;; Let OS decide what to do with files when opened (setq org-file-apps `(("pdf" . default)