aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-08 15:20:35 +0200
committerGravatar Tom Willemse2016-10-08 15:20:35 +0200
commitd2646d4d6d09ae392c82d04091947446080a0716 (patch)
tree51ae45bc96e54380b6b91df33ddd748f0b589d6c /emacs
parentad5ca813da062689773ab6ee38e7b302d8f210a4 (diff)
downloadnew-dotfiles-d2646d4d6d09ae392c82d04091947446080a0716.tar.gz
new-dotfiles-d2646d4d6d09ae392c82d04091947446080a0716.zip
Hide project name when not in a project
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org5
1 files changed, 4 insertions, 1 deletions
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.