emacs: BREAKING stop using use-package for savehist

This commit is contained in:
Protesilaos Stavrou 2025-11-01 11:43:19 +02:00
parent 279164b6d4
commit 0a23c754d1
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 6 additions and 10 deletions

View file

@ -177,15 +177,13 @@
(prot/completions-tweak-style prot-common-truncate-lines-silently))))
;;;; `savehist' (minibuffer and related histories)
(use-package savehist
:ensure nil
:hook (after-init . savehist-mode)
:config
(prot-emacs-configure
(setq savehist-file (locate-user-emacs-file "savehist"))
(setq history-length 100)
(setq history-delete-duplicates t)
(setq savehist-save-minibuffer-history t)
(add-to-list 'savehist-additional-variables 'kill-ring))
(add-to-list 'savehist-additional-variables 'kill-ring)
(savehist-mode 1))
(use-package dabbrev
:ensure nil

View file

@ -4407,15 +4407,13 @@ basis.
#+begin_src emacs-lisp :tangle "prot-emacs-modules/prot-emacs-completion.el"
;;;; `savehist' (minibuffer and related histories)
(use-package savehist
:ensure nil
:hook (after-init . savehist-mode)
:config
(prot-emacs-configure
(setq savehist-file (locate-user-emacs-file "savehist"))
(setq history-length 100)
(setq history-delete-duplicates t)
(setq savehist-save-minibuffer-history t)
(add-to-list 'savehist-additional-variables 'kill-ring))
(add-to-list 'savehist-additional-variables 'kill-ring)
(savehist-mode 1))
#+end_src
*** The =prot-emacs-completion.el= settings for dynamic text expansion (~dabbrev~)