mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-06 05:52:32 -08:00
Put insertion of diary entry on daily menu.
This commit is contained in:
parent
cba0c2538d
commit
d960f2795a
1 changed files with 8 additions and 0 deletions
|
|
@ -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."
|
||||
(interactive)
|
||||
(save-excursion
|
||||
(calendar-goto-date (calendar-event-to-date))
|
||||
(insert-diary-entry nil)))
|
||||
|
||||
(defun calendar-mouse-set-mark ()
|
||||
"Mark the date under the cursor."
|
||||
(interactive)
|
||||
|
|
@ -284,6 +291,7 @@ ERROR is t, otherwise just returns nil."
|
|||
(list
|
||||
(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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue