From a83f1a1cd37c3ba598b6d2a2c8392a716b9d7df0 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Tue, 1 Oct 2024 11:26:41 -0400 Subject: [PATCH] fix(emacs): add cape Signed-off-by: Lucas Sta Maria --- .emacs.d/init.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6981ee2..8eb8627 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -39,6 +39,12 @@ :init (global-corfu-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 :init (add-hook 'after-init-hook 'vertico-mode)) @@ -165,8 +171,8 @@ (use-package hledger-mode :straight t) ;; LSP -(use-package lsp-mode :straight t) -(use-package lsp-ui :straight t +(use-package lsp-mode :straight t) +(use-package lsp-ui :straight t :after (lsp-mode) :hook ((lsp-mode . lsp-ui-mode) (lsp-mode . lsp-inlay-hints-mode)))