summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-21 07:44:50 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-21 07:44:50 +0200
commit1d1eb583fd6bc5e124ec1a77b64aa1dcd8224131 (patch)
tree75821c9ffaf710599c1fb76bd4206b782dfc0af5 /.config
parent024279207cb3dc912103388fa1a7d87c7cdd4173 (diff)
emacs: Remove company-mode
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/init.el22
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