emacs: polyfill `project-name` for eglot
Alan Pearce alan@alanpearce.eu
Sat, 01 Apr 2023 18:54:05 +0200
1 files changed, 3 insertions(+), 0 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -1017,6 +1017,9 @@ (use-package tree-sitter-indent :ghook ('(rustic-mode-hook))) +(unless (fboundp 'project-name) + (defun project-name (project) + (file-name-base (cdr project)))) (use-package eglot :general (:states 'normal :keymaps 'eglot-mode-map "gd" #'xref-find-definitions