refactor(emacs): organise into reasonable modules
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
51a7ff1b9c
commit
e99a639325
10 changed files with 270 additions and 199 deletions
40
.emacs.d/include/priime-completion.el
Normal file
40
.emacs.d/include/priime-completion.el
Normal file
|
@ -0,0 +1,40 @@
|
|||
;;; priime-completion.el --- Completion configuration
|
||||
;;; Commentary:
|
||||
;; Provides configuration for completion-related packages.
|
||||
;;; Code:
|
||||
|
||||
(use-package corfu :straight t
|
||||
:custom
|
||||
(completion-styles '(orderless basic))
|
||||
(completion-category-overrides '((file (styles partial-completion))))
|
||||
(corfu-auto t)
|
||||
(corfu-popupinfo-delay 1)
|
||||
:bind (:map corfu-map
|
||||
("C-n" . corfu-next)
|
||||
("C-p" . corfu-previous)
|
||||
("<tab>" . corfu-insert)
|
||||
("RET" . nil))
|
||||
: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)
|
||||
(add-hook 'completion-at-point-functions #'cape-keyword))
|
||||
(use-package vertico :straight t
|
||||
:init
|
||||
(add-hook 'after-init-hook 'vertico-mode))
|
||||
(use-package marginalia :straight t
|
||||
:init
|
||||
(add-hook 'after-init-hook 'marginalia-mode))
|
||||
(use-package orderless :straight t)
|
||||
(use-package consult :straight t)
|
||||
(use-package yasnippet :straight t)
|
||||
(use-package yasnippet-snippets :straight t)
|
||||
|
||||
(provide 'priime-completion)
|
||||
|
||||
;;; priime-completion.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue