]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Add log-edit-comment-ring to savehist-additional-variables
authorEshel Yaron <eshel@areionsec.com>
Sat, 7 May 2022 17:42:07 +0000 (20:42 +0300)
committerEshel Yaron <eshel@areionsec.com>
Sat, 7 May 2022 17:42:07 +0000 (20:42 +0300)
.emacs.d/esy.org

index 87cf5de2d0b3a6c5ce6371db38d02c161264bebb..211ab0d69580fc4422c7fe1e10b3a898ca3b0272 100644 (file)
@@ -174,6 +174,10 @@ For further information about Elisp headers, see [[info:elisp#Library
     (setq bookmark-save-flag 1))
 
   (esy/setup-history)
+
+  (with-eval-after-load 'log-edit
+    (add-to-list 'savehist-additional-variables
+                 'log-edit-comment-ring))
 #+end_src
 
 * Display settings
@@ -455,8 +459,8 @@ For further information about Elisp headers, see [[info:elisp#Library
     "History list for 'esy/org-capture-to-project-heading'.")
 
   (require 'savehist)
-  (setq savehist-additional-variables
-        '(esy/org-capture-to-project-heading-history-list))
+  (add-to-list 'savehist-additional-variables
+        'esy/org-capture-to-project-heading-history-list)
 
   (defun esy/org-capture-to-project-heading ()
     "Prompt for a projects and capture a related task."