Config: Strip down and simplify Emacs config
- Remove consult-dir, nerd-icons-completion, org-contrib and some other unused package - Delete init-org-refile.el and related keybindings - Prune EMMS config - Remove EXWM flatpak launcher helpers (vscodium, localsend, steam) - Extract Windows dirvish video preview fix to standalone module - Drop built-in settings moved elsewhere (startup defaults, whitespace, etc.) - Clean up trailing whitespace / process list prettify configs
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
;; corfu
|
||||
(use-package corfu
|
||||
:autoload (corfu-quit consult-completion-in-region)
|
||||
:functions (persistent-scratch-save corfu-move-to-minibuffer)
|
||||
:functions (persistent-scratch-save)
|
||||
:custom
|
||||
(corfu-auto t)
|
||||
(corfu-auto-prefix 2)
|
||||
@@ -48,17 +48,6 @@
|
||||
(add-hook 'before-save-hook #'corfu-quit)
|
||||
(advice-add #'persistent-scratch-save :before #'corfu-quit)
|
||||
|
||||
;; Move completions to minibuffer
|
||||
(defun corfu-move-to-minibuffer ()
|
||||
(interactive)
|
||||
(pcase completion-in-region--data
|
||||
(`(,beg ,end ,table ,pred ,extras)
|
||||
(let ((completion-extra-properties extras)
|
||||
completion-cycle-threshold completion-cycling)
|
||||
(consult-completion-in-region beg end table pred)))))
|
||||
(keymap-set corfu-map "M-m" #'corfu-move-to-minibuffer)
|
||||
(add-to-list 'corfu-continue-commands #'corfu-move-to-minibuffer)
|
||||
|
||||
:bind (:map corfu-map
|
||||
("RET" . nil)))
|
||||
|
||||
@@ -73,9 +62,6 @@
|
||||
(setq-local corfu-auto nil)
|
||||
(local-set-key (kbd "TAB") 'completion-at-point)))
|
||||
|
||||
(use-package nerd-icons-completion
|
||||
:hook (marginalia-mode . nerd-icons-completion-marginalia-setup))
|
||||
|
||||
(use-package emacs
|
||||
:custom
|
||||
(tab-always-indent 'complete)
|
||||
|
||||
Reference in New Issue
Block a user