diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-21 07:44:50 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-21 07:44:50 +0200 |
commit | 1d1eb583fd6bc5e124ec1a77b64aa1dcd8224131 (patch) | |
tree | 75821c9ffaf710599c1fb76bd4206b782dfc0af5 /.config/emacs/init.el | |
parent | 024279207cb3dc912103388fa1a7d87c7cdd4173 (diff) |
emacs: Remove company-mode
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 891e10d..5abf0b5 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -266,7 +266,6 @@ tabs, regardless of the value of ‘indent-tabs-mode’." (completion-category-overrides '((file (styles basic partial-completion))))) ;;; Completions -;; Disable corfu for now (it’s causing Emacs to crash) (use-package corfu :hook ((prog-mode . corfu-mode)) :custom @@ -275,27 +274,6 @@ tabs, regardless of the value of ‘indent-tabs-mode’." (corfu-auto-prefix 1) (corfu-auto-delay 0)) -(x-comment (use-package company - :init - (with-eval-after-load 'eglot - (add-hook 'eglot-managed-mode-hook #'company-mode)) - - (defun x-company-require-prefix (candidates) - "Transformer for ‘company-mode’ that requires that all candidates -begin with ‘company-prefix’." - (seq-filter (lambda (s) (string-prefix-p company-prefix s)) candidates)) - :custom - (company-minimum-prefix-length 1) - (company-idle-delay (lambda () (unless (company-in-string-or-comment) 0))) - (company-selection-wrap-around t) - (company-tooltip-align-annotations t) - (company-tooltip-flip-when-above t) - (company-frontends '(company-pseudo-tooltip-frontend - company-preview-frontend - company-echo-metadata-frontend)) - (company-transformers '(x-company-require-prefix - company-sort-by-backend-importance)))) - ;;; Increment- and Decrement Numbers (defun x-increment-number-at-point (&optional arg) "Increment the number at point by ARG or 1 if ARG is nil. If called |