emacs: BREAKING stop using use-package for dabbrev

This commit is contained in:
Protesilaos Stavrou 2025-11-01 11:43:47 +02:00
parent 0a23c754d1
commit 313020dfe3
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 4 additions and 12 deletions

View file

@ -185,10 +185,7 @@
(add-to-list 'savehist-additional-variables 'kill-ring)
(savehist-mode 1))
(use-package dabbrev
:ensure nil
:commands (dabbrev-expand dabbrev-completion)
:config
(prot-emacs-configure
;;;; `dabbrev' (dynamic word completion (dynamic abbreviations))
(setq dabbrev-abbrev-char-regexp "\\sw\\|\\s_")
(setq dabbrev-abbrev-skip-leading-regexp "[$*/=~']")
@ -199,8 +196,7 @@
(setq dabbrev-check-other-buffers t)
(setq dabbrev-eliminate-newlines t)
(setq dabbrev-upcase-means-case-search t)
(setq dabbrev-ignored-buffer-modes
'(archive-mode image-mode docview-mode pdf-view-mode)))
(setq dabbrev-ignored-buffer-modes '(archive-mode image-mode docview-mode pdf-view-mode)))
;;;; `abbrev' (Abbreviations, else Abbrevs)
(use-package abbrev

View file

@ -4447,10 +4447,7 @@ The term "dabbrev" stands for "dynamic abbreviation". Emacs also has
static, user-defined abbreviations ([[#h:fd84b79a-351e-40f0-b383-bf520d77834b][The =prot-emacs-completion.el= settings for static text expansion (~abbrev~)]]).
#+begin_src emacs-lisp :tangle "prot-emacs-modules/prot-emacs-completion.el"
(use-package dabbrev
:ensure nil
:commands (dabbrev-expand dabbrev-completion)
:config
(prot-emacs-configure
;;;; `dabbrev' (dynamic word completion (dynamic abbreviations))
(setq dabbrev-abbrev-char-regexp "\\sw\\|\\s_")
(setq dabbrev-abbrev-skip-leading-regexp "[$*/=~']")
@ -4461,8 +4458,7 @@ static, user-defined abbreviations ([[#h:fd84b79a-351e-40f0-b383-bf520d77834b][T
(setq dabbrev-check-other-buffers t)
(setq dabbrev-eliminate-newlines t)
(setq dabbrev-upcase-means-case-search t)
(setq dabbrev-ignored-buffer-modes
'(archive-mode image-mode docview-mode pdf-view-mode)))
(setq dabbrev-ignored-buffer-modes '(archive-mode image-mode docview-mode pdf-view-mode)))
#+end_src
*** The =prot-emacs-completion.el= settings for static text expansion (~abbrev~)