never forgot command history

master
John Turner 2 years ago
parent 228d60c5dc
commit 1f80e2b5c5
No known key found for this signature in database
GPG Key ID: 422FE10CC41A94A2

@ -1,9 +1,11 @@
(require 'savehist) (require 'savehist)
(defvar init-savehist-history-size 9999999999)
(setq savehist-file (expand-file-name "savehist" user-emacs-directory) (setq savehist-file (expand-file-name "savehist" user-emacs-directory)
savehist-save-minibuffer-history t) savehist-save-minibuffer-history t)
(add-to-list 'savehist-additional-variables 'command-history) (add-to-list 'savehist-additional-variables `(command-history . ,init-savehist-history-size))
(unless (file-exists-p savehist-file) (unless (file-exists-p savehist-file)
(make-empty-file savehist-file)) (make-empty-file savehist-file))

Loading…
Cancel
Save