diff options
| author | David Morgan <djm_uk@protonmail.com> | 2025-06-11 16:33:49 +0100 |
|---|---|---|
| committer | David Morgan <djm_uk@protonmail.com> | 2025-06-11 16:33:49 +0100 |
| commit | 04b2644892b899d8f59a7f685172e4244099696d (patch) | |
| tree | 89c331837a1edb1a33d4c5b57140ec0231e7ef6d | |
| parent | daebcaafe3b08f976fdadb4bee6a456d34e6ee0a (diff) | |
| download | dotfiles-04b2644892b899d8f59a7f685172e4244099696d.tar.gz | |
Fix uniquify advice for 30.1
| -rw-r--r-- | .emacs.d/lisp/init-clojure.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-clojure.el b/.emacs.d/lisp/init-clojure.el index d7603f9..c0adb0b 100644 --- a/.emacs.d/lisp/init-clojure.el +++ b/.emacs.d/lisp/init-clojure.el @@ -102,12 +102,12 @@ :init ;; Always show more of the path in clj buffer names. ;; Using setq-local in clojure-mode-hook is not enough, as it runs too late - (defun clj-uniquify-get-proposed-name (orig base dirname &optional depth original-dirname) + (defun clj-uniquify-get-proposed-name (orig base dirname &optional depth) (when (and (> (length base) 4) (string= ".clj" (substring base -4)) (not (string= "project.clj" base))) (setq-local uniquify-min-dir-content 3)) - (funcall orig base dirname depth original-dirname)) + (funcall orig base dirname depth)) (advice-add 'uniquify-get-proposed-name :around 'clj-uniquify-get-proposed-name) :hook (clojure-mode . clojure-mode-hook-fn)) |