From: rush Date: Tue, 7 Jul 2026 21:02:58 +0000 (-0400) Subject: fix adding to list before it is loaded X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=dd9442e4510c2916279117b0b98a885ce7a5da82;p=emacsinit.git fix adding to list before it is loaded --- diff --git a/init.el b/init.el index 9079bff..b7af2a4 100644 --- a/init.el +++ b/init.el @@ -214,7 +214,8 @@ org-refile-use-outline-path 'file org-refile-allow-creating-parent-nodes 'confirm) -(add-to-list 'org-file-apps '("\\.pdf\\'" . emacs)) ; open pdfs in emacs +(with-eval-after-load 'org + (add-to-list 'org-file-apps '("\\.pdf\\'" . emacs))) ; open pdfs in emacs ;; Agenda settings