From 8961d8abacdbc560875263080d80e16fa7b3bcdb Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 13 Oct 2022 07:11:38 -0400 Subject: Fix eglot completion --- emacs/.config/emacs-kj/init.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'emacs/.config/emacs-kj') 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-" . completion-at-point))) + ("C-" . 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)) -- cgit v1.2.3