diff options
| author | unknown <adrijan.bjedov@gmail.com> | 2025-11-20 20:00:06 +0100 |
|---|---|---|
| committer | unknown <adrijan.bjedov@gmail.com> | 2025-11-20 20:00:06 +0100 |
| commit | 345127d4267c15e3a9dd7ff76e4fbac21368a5b0 (patch) | |
| tree | f8481a4ed197662c92c50636b7fc43377d57665a /init.el | |
| parent | 0341f62b3edeb71276f9ecd84f51357a6870b1d5 (diff) | |
Improved autocompletion: corfu configs and cape
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -130,9 +130,22 @@ ;; Completion (use-package corfu - :commands global-corfu-mode - :init (add-hook 'after-init-hook #'global-corfu-mode) - :config (setq corfu-auto t)) + :init + (global-corfu-mode) + (corfu-history-mode) + (corfu-popupinfo-mode)) + +;; Enable indentation+completion using the TAB key. +;; `completion-at-point' is often bound to M-TAB. +(setq tab-always-indent 'complete) + +(use-package cape + :bind ("C-c p" . cape-prefix-map) + :init + (add-hook 'completion-at-point-functions #'cape-dabbrev) + (add-hook 'completion-at-point-functions #'cape-file) + (add-hook 'completion-at-point-functions #'cape-elisp-block) + (add-hook 'completion-at-point-functions #'cape-dict)) ;; Retro-active completion (use-package orderless |
