Update Emacs config
This commit is contained in:
@@ -261,27 +261,23 @@
|
||||
:config
|
||||
(treemacs-load-theme "nerd-icons"))
|
||||
|
||||
;; company
|
||||
;; (use-package company
|
||||
;; :bind (:map company-active-map
|
||||
;; ("C-n" . company-select-next)
|
||||
;; ("C-p" . company-select-previous))
|
||||
;; :init
|
||||
;; (global-company-mode)
|
||||
;; :config
|
||||
;; (setq company-idle-delay 0.1)) ;; faster autocomplete
|
||||
|
||||
;; corfu
|
||||
(use-package corfu
|
||||
:custom
|
||||
(corfu-cycle t)
|
||||
(corfu-auto t)
|
||||
(corfu-auto-prefix 2)
|
||||
(corfu-auto-delay 0.2)
|
||||
(corfu-quit-at-boundary 'separator)
|
||||
(corfu-echo-documentation 0.25)
|
||||
:init
|
||||
(when (> emacs-major-version 30)
|
||||
;; this mode is only available in Emacs version 30.1 and
|
||||
;; greater.
|
||||
(when (>= emacs-major-version 30)
|
||||
(global-completion-preview-mode 1))
|
||||
(unless (display-graphic-p)
|
||||
(when (require 'corfu-terminal nil :noerror)
|
||||
(corfu-terminal-mode +1)))
|
||||
(global-corfu-mode 1))
|
||||
(global-corfu-mode 1)
|
||||
(corfu-history-mode 1))
|
||||
|
||||
;; yasnippet config
|
||||
(use-package yasnippet
|
||||
|
Reference in New Issue
Block a user