1
0
Fork 0

fix(emacs): add cape

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-10-01 11:26:41 -04:00
parent 47e1cfe7c3
commit a83f1a1cd3
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -39,6 +39,12 @@
:init :init
(global-corfu-mode) (global-corfu-mode)
(corfu-popupinfo-mode)) (corfu-popupinfo-mode))
(use-package cape :straight t
:bind ("M-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))
(use-package vertico :straight t (use-package vertico :straight t
:init :init
(add-hook 'after-init-hook 'vertico-mode)) (add-hook 'after-init-hook 'vertico-mode))
@ -165,8 +171,8 @@
(use-package hledger-mode :straight t) (use-package hledger-mode :straight t)
;; LSP ;; LSP
(use-package lsp-mode :straight t) (use-package lsp-mode :straight t)
(use-package lsp-ui :straight t (use-package lsp-ui :straight t
:after (lsp-mode) :after (lsp-mode)
:hook ((lsp-mode . lsp-ui-mode) :hook ((lsp-mode . lsp-ui-mode)
(lsp-mode . lsp-inlay-hints-mode))) (lsp-mode . lsp-inlay-hints-mode)))