Fix misinterpretation of percent sign in org-clock hydra

This commit is contained in:
Daniel - 2020-07-01 17:15:13 +02:00
parent 2fd03dcf33
commit 4f063c5e6b
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 2 deletions

View File

@ -400,8 +400,8 @@ forces clocking in of the default task."
org-clock-current-task)
(defhydra hydra-org-clock (:color blue)
"
Current Task: %s(db/org-clock-current-task); "
;; Quote %, as otherwise they would be misinterpreted as format characters
"\nCurrent Task: %s(replace-regexp-in-string \"%\" \"%%\" org-clock-current-task); "
("w" (db/org-clock-in-work-task) "work")
("h" (db/org-clock-in-home-task) "home")
("b" (db/org-clock-in-break-task) "break")