diff options
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 |
