all repos — nixfiles @ db54c35ed56ea54a3477d5a68490b4d483d5572b

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

emacs: save recent files and command history between sessions
Alan Pearce alan@alanpearce.eu
Fri, 24 Mar 2023 07:17:22 +0100
commit

db54c35ed56ea54a3477d5a68490b4d483d5572b

parent

33c38344aca751036d9fffd60bcbcf079e19fd66

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -229,6 +229,12 @@ (use-package hydra
   :defer 2)
 
+(recentf-mode +1)
+(use-package savehist
+  :init (savehist-mode +1)
+  :config (progn
+            (add-to-list 'savehist-additional-variables 'command-history)))
+
 (fido-vertical-mode +1)
 
 (setq completion-ignore-case t