emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu f0f60de5e7: README: Update dabbrev configuration


From: ELPA Syncer
Subject: [elpa] externals/corfu f0f60de5e7: README: Update dabbrev configuration example
Date: Sun, 7 Jan 2024 18:57:39 -0500 (EST)

branch: externals/corfu
commit f0f60de5e7f916358feda5f6509d139cbccf20f1
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    README: Update dabbrev configuration example
---
 README.org | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.org b/README.org
index 7d4a52dac6..36f8cec70c 100644
--- a/README.org
+++ b/README.org
@@ -131,9 +131,11 @@ completion at point function provided by my 
[[https://github.com/minad/cape][Cap
   ;; Swap M-/ and C-M-/
   :bind (("M-/" . dabbrev-completion)
          ("C-M-/" . dabbrev-expand))
-  ;; Other useful Dabbrev configurations.
-  :custom
-  (dabbrev-ignored-buffer-regexps '("\\.\\(?:pdf\\|jpe?g\\|png\\)\\'")))
+  :config
+  (add-to-list 'dabbrev-ignored-buffer-regexps "\\` ")
+  ;; Since 29.1, use `dabbrev-ignored-buffer-regexps' on older.
+  (add-to-list 'dabbrev-ignored-buffer-modes 'doc-view-mode)
+  (add-to-list 'dabbrev-ignored-buffer-modes 'pdf-view-mode))
 #+end_src
 
 If you start to configure the package more deeply, I recommend to give the



reply via email to

[Prev in Thread] Current Thread [Next in Thread]