From 2264ae0becd3f21c469ad2c801af074810de6540 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 1 Apr 2023 18:54:05 +0200 Subject: emacs: polyfill `project-name` for eglot --- user/emacs/init.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'user/emacs') diff --git a/user/emacs/init.el b/user/emacs/init.el index f64bb226..f673b38c 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -1017,6 +1017,9 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (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 -- cgit 1.4.1