1
0
Fork 0

fix(emacs): switch from company to corfu, clean up

This commit is contained in:
Lucas Sta Maria 2024-08-24 16:36:58 -07:00
parent da01de3d24
commit 40b51f32c9
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 10 additions and 15 deletions

View file

@ -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))

View file

@ -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