Commit d960f279 authored by Edward M. Reingold's avatar Edward M. Reingold
Browse files

Put insertion of diary entry on daily menu.

parent cba0c253
......@@ -238,6 +238,13 @@ ERROR is t, otherwise just returns nil."
(calendar-goto-date (calendar-event-to-date))
(view-diary-entries 1)))
(defun calendar-mouse-insert-diary-entry ()
"Insert diary entry for mouse-selected date."
(calendar-goto-date (calendar-event-to-date))
(insert-diary-entry nil)))
(defun calendar-mouse-set-mark ()
"Mark the date under the cursor."
......@@ -284,6 +291,7 @@ ERROR is t, otherwise just returns nil."
(calendar-date-string date t t)
'("Diary entries" . calendar-mouse-view-diary-entries)
'("Insert diary entry" . calendar-mouse-insert-diary-entry)
'("Holidays" . calendar-mouse-holidays)
'("Mark date" . calendar-mouse-set-mark)
'("Sunrise/sunset" . calendar-mouse-sunrise/sunset)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment