While org-clock-in a task, the task name will be shown on the mode-line. But some of my task names are too long. Is there any function to truncate the display name in the mode line?
Thanks.
You can tune this according to your taste:
(setq org-clock-heading-function
(lambda ()
(let ((str (nth 4 (org-heading-components))))
(if (> (length str) 6)
(substring str 0 6)))))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With