fix(emacs): switch from company to corfu, clean up
This commit is contained in:
parent
da01de3d24
commit
40b51f32c9
2 changed files with 10 additions and 15 deletions
|
@ -239,13 +239,6 @@
|
||||||
(add-hook 'neotree-mode-hook (lambda () (text-scale-set -0.5)))
|
(add-hook 'neotree-mode-hook (lambda () (text-scale-set -0.5)))
|
||||||
;(add-hook 'neotree-mode-hook (lambda () (buffer-face-set :background "#ffffff")))
|
;(add-hook 'neotree-mode-hook (lambda () (buffer-face-set :background "#ffffff")))
|
||||||
|
|
||||||
;; Orderless
|
|
||||||
(setq completion-styles '(orderless basic))
|
|
||||||
(setq completion-category-overrides '((file (styles basic partial-completion))))
|
|
||||||
|
|
||||||
;; embark
|
|
||||||
(keymap-global-set "C-." #'embark-act)
|
|
||||||
|
|
||||||
;; hledger
|
;; hledger
|
||||||
(setq hledger-currency-string "$")
|
(setq hledger-currency-string "$")
|
||||||
(add-to-list 'auto-mode-alist '("\\.journal\\'" . hledger-mode))
|
(add-to-list 'auto-mode-alist '("\\.journal\\'" . hledger-mode))
|
||||||
|
|
|
@ -25,13 +25,13 @@
|
||||||
|
|
||||||
|
|
||||||
;; Completion
|
;; Completion
|
||||||
(use-package company :straight t
|
(use-package corfu :straight t
|
||||||
:custom
|
:custom
|
||||||
(completion-styles '(basic orderless))
|
(completion-styles '(orderless basic))
|
||||||
:bind
|
(completion-category-overrides '((file (styles partial-completion))))
|
||||||
("M-SPC" . #'company-complete)
|
(corfu-auto t)
|
||||||
:init
|
:init
|
||||||
(add-hook 'after-init-hook 'global-company-mode))
|
(global-corfu-mode))
|
||||||
(use-package company-box :straight t
|
(use-package company-box :straight t
|
||||||
:after (company)
|
:after (company)
|
||||||
:hook (company-mode . company-box-mode))
|
:hook (company-mode . company-box-mode))
|
||||||
|
@ -75,7 +75,9 @@
|
||||||
("C-x b" . bufler-switch-buffer))
|
("C-x b" . bufler-switch-buffer))
|
||||||
:init
|
:init
|
||||||
(bufler-mode 1))
|
(bufler-mode 1))
|
||||||
(use-package embark :straight t)
|
(use-package embark :straight t
|
||||||
|
:bind
|
||||||
|
(("C-." . embark-act)))
|
||||||
(use-package embark-consult :straight t)
|
(use-package embark-consult :straight t)
|
||||||
(use-package wgrep :straight t)
|
(use-package wgrep :straight t)
|
||||||
(use-package perspective :straight t
|
(use-package perspective :straight t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue