summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2023-12-21 10:12:05 -0500
committerKjetil Orbekk <kj@orbekk.com>2023-12-21 10:12:05 -0500
commit4db0ff91346959f5a830dd5c7f86ecb13ec58933 (patch)
tree8fd8a9685f0385b79c8ee9f1b23acaa80dcf3123
parente5ac40baabab63988470013cf2f3db8ec4bfb9f2 (diff)
update
-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)))