From 1c0a4e2d39723e417ee71ce9faa0b67a7cb38e98 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 9 Sep 2024 15:31:06 +0200 Subject: emacs: Check for lisp-data-mode, not common-lisp-mode --- .config/emacs/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index da45954..43e14c0 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -231,7 +231,7 @@ the selection. This is nearly identical to ‘evil-surround-function’ except it provides a useful prompt, and is language-aware." (let ((list-name (or (evil-surround-read-from-minibuffer "Function name: ") ""))) - (if (derived-mode-p 'lisp-mode 'common-lisp-mode 'emacs-lisp-mode) + (if (derived-mode-p 'lisp-mode 'lisp-data-mode 'emacs-lisp-mode) (cons (format "(%s " list-name) ")") (cons (format "%s(" (or list-name "")) ")")))) -- cgit v1.2.3