help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Diary - Deciding to display time or not


From: michael-franzese
Subject: Diary - Deciding to display time or not
Date: Mon, 21 Dec 2020 02:54:51 +0100

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)) )




reply via email to

[Prev in Thread] Current Thread [Next in Thread]