all repos — nixfiles @ d20b926079b14340c3f5e59007de998089413c43

System and user configuration, managed by nix and home-manager

emacs: persist additional projectile variables
Alan Pearce alan@alanpearce.eu
Sat, 22 Apr 2023 23:09:08 +0200
commit

d20b926079b14340c3f5e59007de998089413c43

parent

9abfdd047d60f8762e19d1f6dc905b02866de771

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -225,7 +225,13 @@ (use-package savehist
   :init (savehist-mode +1)
   :config (progn
-            (add-to-list 'savehist-additional-variables 'command-history)))
+            (add-to-list 'savehist-additional-variables 'command-history)
+            (add-to-list 'savehist-additional-variables 'projectile-configure-cmd-map)
+            (add-to-list 'savehist-additional-variables 'projectile-compilation-cmd-map)
+            (add-to-list 'savehist-additional-variables 'projectile-install-cmd-map)
+            (add-to-list 'savehist-additional-variables 'projectile-package-cmd-map)
+            (add-to-list 'savehist-additional-variables 'projectile-test-cmd-map)
+            (add-to-list 'savehist-additional-variables 'projectile-run-cmd-map)))
 
 (use-package vertico
   :ghook ('after-init-hook #'vertico-mode))