diff options
author | Tom Willemse | 2016-10-08 15:20:35 +0200 |
---|---|---|
committer | Tom Willemse | 2016-10-08 15:20:35 +0200 |
commit | d2646d4d6d09ae392c82d04091947446080a0716 (patch) | |
tree | 51ae45bc96e54380b6b91df33ddd748f0b589d6c /emacs/.emacs.d/init.org | |
parent | ad5ca813da062689773ab6ee38e7b302d8f210a4 (diff) | |
download | new-dotfiles-d2646d4d6d09ae392c82d04091947446080a0716.tar.gz new-dotfiles-d2646d4d6d09ae392c82d04091947446080a0716.zip |
Hide project name when not in a project
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r-- | emacs/.emacs.d/init.org | 5 |
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. |