summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2018-12-21 21:14:02 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2018-12-21 21:14:02 +0100
commitc5a512ce97f864ef9269fd510603c1ee1f894c7a (patch)
tree1414cf1f7069dc4fa6c21ded41b61142655b1942
parent27c0223cece3c1cbd4b9c060f36545e45d03e591 (diff)
downloaddotfiles-c5a512ce97f864ef9269fd510603c1ee1f894c7a.tar.xz
Change unnecessary when-let* to when-let
Thereby making the function work with Emacs 25.
-rw-r--r--.emacs2
1 files changed, 1 insertions, 1 deletions
diff --git a/.emacs b/.emacs
index d28abcf..226a17f 100644
--- a/.emacs
+++ b/.emacs
@@ -283,7 +283,7 @@
(car (project-roots project))))
(defun my/project-name ()
- (when-let* ((root (my/project-root)))
+ (when-let ((root (my/project-root)))
(when (not (file-equal-p root "~"))
(file-name-nondirectory (string-trim-right root "/")))))