all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.