From d2646d4d6d09ae392c82d04091947446080a0716 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 8 Oct 2016 15:20:35 +0200 Subject: [PATCH] Hide project name when not in a project --- emacs/.emacs.d/init.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 355fa01..e34aeb5 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -677,7 +677,10 @@ To start off, first I need to enable lexical binding. '(:eval (if (file-remote-p default-directory) " P" - (format " P[%s]" (projectile-project-name)))))) + (let ((name (projectile-project-name))) + (if (string= "-" name) + "" + (format " P[%s]" name))))))) #+END_SRC Store projectile files in my data dir.