summaryrefslogtreecommitdiff
path: root/emacs/.config
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-10-13 07:11:38 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-10-13 07:11:38 -0400
commit8961d8abacdbc560875263080d80e16fa7b3bcdb (patch)
treeb3fdc2999999910e18d94a16a8e3675f854e70f7 /emacs/.config
parentbfb3f84663d93d665b52fd43996dc67788319d13 (diff)
Fix eglot completion
Diffstat (limited to 'emacs/.config')
-rw-r--r--emacs/.config/emacs-kj/init.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/emacs/.config/emacs-kj/init.el b/emacs/.config/emacs-kj/init.el
index e079a39..4a74a97 100644
--- a/emacs/.config/emacs-kj/init.el
+++ b/emacs/.config/emacs-kj/init.el
@@ -116,8 +116,6 @@
(setq company-idle-delay nil)
(global-company-mode t))
-(setq max-mini-window-height 3)
-
(use-package selectrum
:init
(selectrum-mode +1))
@@ -567,9 +565,17 @@
("C-c C-r C-e" . consult-flymake)
("C-c C-r C-f" . eglot-format)
("C-c C-r C-a" . eglot-code-actions)
- ("C-<tab>" . completion-at-point)))
+ ("C-<tab>" . company-complete)))
(let ((google-config-file
(expand-file-name "google.el" user-emacs-directory)))
(when (file-exists-p google-config-file)
(load-file google-config-file)))
+
+(define-key isearch-mode-map [(control return)]
+ #'isearch-exit-other-end)
+(defun isearch-exit-other-end ()
+ "Exit isearch, at the opposite end of the string."
+ (interactive)
+ (isearch-exit)
+ (goto-char isearch-other-end))