joostkremers / writeroom-mode

Writeroom-mode: distraction-free writing for Emacs.
BSD 3-Clause "New" or "Revised" License
607 stars 28 forks source link

show actual time or clock? #72

Open grauschnabel opened 2 years ago

grauschnabel commented 2 years ago

Hi there,

is there an easy way to show the actual time in one of the corners? I miss the clock so I have to switch between some windows to see the system clock. It would be great to have it somewhere.

//Martin

joostkremers commented 2 years ago

What you could do is the following:

(setq writeroom-mode-line '(" " global-mode-string))
(setq writeroom-local-effects '(display-time-mode))

That should display the time in the bottom left part of the screen, preceded by a space. For a nicer display, you'd need to customise writeroom-mode-line further, and/or the Customize group display-time.