unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Diary - Deciding to display time or not
@ 2020-12-21  1:54 michael-franzese
  0 siblings, 0 replies; only message in thread
From: michael-franzese @ 2020-12-21  1:54 UTC (permalink / raw)
  To: Help Gnu Emacs

I want to be able to show the time but also to set it to "nil".  What can I do?

(defun diary-days-time (n &optional t)
  "Display N-day diary window and current time in the Mode Line."
  (interactive " NN-Day Diary: \nN Display Time: ")

  (diary n)  ; Generate the diary window for N days.

  ;; Display current time in the Mode Line
  (when (< n 1) (display-time nil)) )




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-21  1:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-21  1:54 Diary - Deciding to display time or not michael-franzese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).