aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-07-03 23:21:51 +0200
committerAdrian Kummerlaender2020-07-04 00:03:42 +0200
commit61fee32e4196f7dddf159371621080b669ee02b8 (patch)
tree64ac8773d9e3ffcbc5f177a5ffa75df423faa7e4
parent23150de2a92ec9a30bb2d72178ecb71c6ce18d49 (diff)
downloadnixos_home-61fee32e4196f7dddf159371621080b669ee02b8.tar
nixos_home-61fee32e4196f7dddf159371621080b669ee02b8.tar.gz
nixos_home-61fee32e4196f7dddf159371621080b669ee02b8.tar.bz2
nixos_home-61fee32e4196f7dddf159371621080b669ee02b8.tar.lz
nixos_home-61fee32e4196f7dddf159371621080b669ee02b8.tar.xz
nixos_home-61fee32e4196f7dddf159371621080b669ee02b8.tar.zst
nixos_home-61fee32e4196f7dddf159371621080b669ee02b8.zip
Preserve Emacs history across reloads
-rw-r--r--gui/conf/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index ab076b1..9b5430f 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -28,6 +28,11 @@
(add-hook 'after-make-frame-functions #'startup)
(startup (selected-frame)))
+(savehist-mode 1)
+(setq savehist-additional-variables
+ '(kill-ring search-ring))
+(setq savehist-file "~/.emacs.d/savehist")
+
(setq mouse-wheel-scroll-amount '(5))
(setq mouse-wheel-progressive-speed nil)
(setq fast-but-imprecise-scrolling t)