diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-04-27 16:21:10 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-04-27 16:21:10 +0200 |
| commit | a37d7272a5fa45bcba106f5ba2fb8867f6153ec7 (patch) | |
| tree | 63e79efcc72317298f31f68557b89711d26200b9 | |
| parent | e94d9a24eb463971376864da7ed1bc4faacb5dfc (diff) | |
README update
| -rw-r--r-- | README.org | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -96,15 +96,6 @@ Here is an example configuration: :init (global-corfu-mode)) - ;; Use Dabbrev with Corfu! - (use-package dabbrev - ;; 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\\)\\'"))) - ;; A few more useful configurations... (use-package emacs :init @@ -121,6 +112,22 @@ Here is an example configuration: (setq tab-always-indent 'complete)) #+end_src +Dabbrev completion is based on =completion-in-region= and can be used with Corfu. +You may want to swap the =dabbrev-completion= with the =dabbrev-expand= key for +easier access, if you prefer completion. Also take a look at the =cape-dabbrev= +completion at point function provided by my [[https://github.com/minad/cape][Cape]] package. + +#+begin_src emacs-lisp + ;; Use Dabbrev with Corfu! + (use-package dabbrev + ;; 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\\)\\'"))) +#+end_src + If you start to configure the package more deeply, I recommend to give the Orderless completion style a try for filtering. Orderless completion is different from the familiar prefix TAB completion. Corfu can be used with the |
