unhammer / org-upcoming-modeline

📅 Show upcoming org event in modeline
https://www.reddit.com/r/emacs/comments/k1e4eu/show_next_orgappointment_in_modeline/
GNU General Public License v2.0
31 stars 6 forks source link

How to remove/replace the alarm clock icon? #16

Closed morgandavidson closed 1 year ago

morgandavidson commented 1 year ago

As it shows a Unicode error in my modeline, I'd prefer to remove it or replace it with another symbol if possible.

unhammer commented 1 year ago

Grab the newest version and (setq org-upcoming-modeline-format (lambda (t h) (format "%s: %s" t h))) or even (setq org-upcoming-modeline-format (lambda (t h) (format "%s %s" h t))) if you're feeling adventurous

morgandavidson commented 1 year ago

I got the latest version from Melpa installed ( 0.1.4), and neither line works. They produce the following error message: Error running timer ‘org-upcoming-modeline--set-string’: (setting-constant t)

unhammer commented 1 year ago

Or (setq org-upcoming-modeline-format (lambda (title header) (format "%s: %s" title header))) ? You can customise it however you want.

morgandavidson commented 1 year ago

(setq org-upcoming-modeline-format (lambda (title header) (format "%s: %s" title header))) works perfectly, thank you!