From 4db0ff91346959f5a830dd5c7f86ecb13ec58933 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 21 Dec 2023 10:12:05 -0500 Subject: update --- emacs/.config/emacs-kj/init.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'emacs/.config/emacs-kj') 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))) -- cgit v1.2.3