emacs: Autocomplete tweaks

This commit is contained in:
Charlotte Van Petegem 2023-08-02 14:49:32 +02:00
parent 51aa54d32a
commit 4da5d5718f
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 30 additions and 3 deletions

View file

@ -44,6 +44,17 @@
"SPC n" '(flymake-goto-next-error :which-key "Next error")
"SPC p" '(flymake-goto-prev-error :which-key "Previous error")
)
:hook (eglot-managed-mode . chvp--eglot-capf)
:config
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
(defun chvp--eglot-capf ()
(setq-local completion-at-point-functions
(list (cape-super-capf
#'eglot-completion-at-point
#'tempel-complete)
#'cape-file
#'dabbrev-capf
#'cape-line)))
)
;; Forth syntax support