summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el19
1 files changed, 16 insertions, 3 deletions
diff --git a/init.el b/init.el
index 4e4f778..63adfe2 100644
--- a/init.el
+++ b/init.el
@@ -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