summaryrefslogtreecommitdiff
path: root/emacs/.config/emacs-kj
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.config/emacs-kj')
-rw-r--r--emacs/.config/emacs-kj/init.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/emacs/.config/emacs-kj/init.el b/emacs/.config/emacs-kj/init.el
index 41cd59b..4565bc9 100644
--- a/emacs/.config/emacs-kj/init.el
+++ b/emacs/.config/emacs-kj/init.el
@@ -381,6 +381,8 @@
:init
(which-key-mode))
+;; This is needed to fix an issue with magit transient dependencies.
+(use-package transient)
(use-package magit)
(use-package mixed-pitch
@@ -819,3 +821,17 @@
(use-package pcre2el)
(use-package pdf-tools)
+
+;;; Picking a specific eglot action.
+;; (defun my-replace-with-deduced-type (beg)
+;; (interactive "*d")
+;; (eglot-server-capable-or-lose :codeActionProvider)
+;; (let* ((server (eglot--current-server-or-lose))
+;; (action-title "Replace with deduced type")
+;; (available-actions (eglot-code-actions beg))
+;; (action (seq-find (lambda (a)
+;; (equal (plist-get a :title) action-title))
+;; available-actions)))
+;; (unless action
+;; (error "Could not find '%s': %s" action-title available-actions))
+;; (eglot-execute server action)))