From f0f60de5e7f916358feda5f6509d139cbccf20f1 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Sun, 7 Jan 2024 23:59:21 +0100 Subject: README: Update dabbrev configuration example --- README.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index 7d4a52d..36f8cec 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 -- cgit v1.0