Search code examples
emacsorg-mode

Set clock table duration format for emacs org-mode


I recently upgraded to org-mode 8.2.5h and now when I update my clock tables, values that are larger than 24h get for instance displayed as: 1d 9:16. Is there any preference I can set to switch it back to the hours:minutes format. I've searched the documentation but could not find any information regarding this topic.


Solution

    • Before Org-Mode Version 9.1

    You can set the org-time-clocksum-format variable like this :

    (setq org-time-clocksum-format (quote (:hours "%d" :require-hours t :minutes ":%02d" :require-minutes t)))
    
    • Org-Mode Version 9.1 and up

    You should now use org-duration-format :

    (setq org-duration-format (quote h:mm))
    

    See this for explanations on the update.

    See this for the Org-Mode release notes.