summaryrefslogtreecommitdiffstats
path: root/.emacs.d/site-lisp
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-01-19 23:33:51 +0100
committerGravatar Tom Willemse2014-01-19 23:33:51 +0100
commit25dc5140d63f5dd08dec391911fc508f1f30e83e (patch)
tree3898c13a7214913fe80b0fc23fd7a955c31684c8 /.emacs.d/site-lisp
parenta7e7674a901da7f851a8160cee3f4f1dc22100a9 (diff)
downloademacs-25dc5140d63f5dd08dec391911fc508f1f30e83e.tar.gz
emacs-25dc5140d63f5dd08dec391911fc508f1f30e83e.zip
Don't add :: for empty tag
Diffstat (limited to '.emacs.d/site-lisp')
-rw-r--r--.emacs.d/site-lisp/org-init.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/.emacs.d/site-lisp/org-init.el b/.emacs.d/site-lisp/org-init.el
index 63ff5b4..4ca88bd 100644
--- a/.emacs.d/site-lisp/org-init.el
+++ b/.emacs.d/site-lisp/org-init.el
@@ -80,7 +80,10 @@
"Get the name for a new tag for the currently loaded desktop."
(let ((dname (desktop-registry-current-desktop)))
(if dname
- (format ":%s:" (read-string "Tag(s): " (tagify dname)))
+ (let ((tag (read-string "Tag(s): " (tagify dname))))
+ (if (not (string= tag ""))
+ (format ":%s:" tag)
+ ""))
"")))
(setq org-agenda-files '("~/documents/org/tasks"))