[Org] Don’t show file name of currently running clock

This commit is contained in:
Daniel - 2017-10-01 16:02:20 +02:00
parent 4ac8be452b
commit eccf84d6b0
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 2 additions and 6 deletions

View File

@ -217,12 +217,8 @@ forces clocking in of the default task."
(with-temp-file db/org-clock-current-task-file
(let ((clock-buffer (marker-buffer org-clock-marker)))
(if (null clock-buffer)
(insert "No running clock"))
(let ((current-task org-clock-heading)
(current-file (file-name-sans-extension
(file-name-nondirectory
(buffer-file-name clock-buffer)))))
(insert current-file "/" current-task)))))
(insert "No running clock")
(insert org-clock-heading)))))
(add-hook 'org-clock-in-hook #'db/org-current-task)