From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Charles Curley Newsgroups: gmane.emacs.help Subject: Daily Diary Display in Emacs emacs24 24.4+1-5 Date: Fri, 23 Oct 2015 10:24:09 -0600 Message-ID: <20151023102409.76785eec@jhegaala.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1445617515 780 80.91.229.3 (23 Oct 2015 16:25:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 16:25:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 18:25:00 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zpf91-0003Dp-Ld for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 18:24:44 +0200 Original-Received: from localhost ([::1]:39744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpf90-0004Dr-Q8 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 12:24:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpf8j-0004BU-Fx for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 12:24:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpf8g-0002Yb-CD for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 12:24:25 -0400 Original-Received: from mail.endcrypt.com ([50.97.100.2]:59388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpf8g-0002Sv-5j for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 12:24:22 -0400 Original-Received: from jhegaala.localdomain (unknown [199.192.126.172]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.endcrypt.com (Postfix) with ESMTPSA id DD76486F4A for ; Fri, 23 Oct 2015 16:24:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.endcrypt.com DD76486F4A X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 50.97.100.2 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107798 Archived-At: I have emacs24, 24.4+1-5 on Debian 8.2 jessie. In the past (e.g. emacs 23.4+1-4 on debian 7.x, wheezy), I have had emacs re-display my diary every day automatically. This capability does not seem to work on this version of emacs. Relevant portions of my .emacs (watch for wrapping): -------------------------------------------------- ;; Calendar stuff: (if (system-is-desktop) (progn ;; ---great bit of code from Jeff Miller to highlight appointments in red on modeline--- ;; per http://www.emacswiki.org/emacs/AppointmentMode (defface appt-face '((t (:foreground "red" :background "white"))) "Face to indicate a current appointment." :group 'appt) (defadvice appt-disp-window (before appt-hilite-more activate) (when appt-mode-string (put-text-property 1 (- (length appt-mode-string) 1) 'face 'appt-face appt-mode-string))) (defadvice appt-check (after appt-hilite activate) (when appt-mode-string (put-text-property 1 (- (length appt-mode-string) 1) 'face 'appt-face appt-mode-string) (force-mode-line-update))) ;; --------------------------------- ;; (seq appt-display-mode-line t) ; explicitly enable it. ;; set my home co-ordinates for sunrise/sunset calculations (setq calendar-latitude xx.x) (setq calendar-longitude xxx.x) (setq calendar-location-name "obfuscated") (calendar) ; fire up the calendar display. (setq show-trailing-whitespace nil) ;; (setq cal-tex-diary t) ;; (setq cal-tex-rules t) (progn (calendar-mark-holidays) (diary-mark-entries) (other-window 1) ; Now switch to the main window on this frame. ;; Set a vector for the number of days in advance to show ;; appointments. Then turn the diary mode on. (setq diary-number-of-entries [2 3 3 3 3 5 2]) ;; Add the appointment generator to the diary hook. (if ( < emacs-major-version 24) ; emacs 23 or less (add-hook 'diary-hook 'appt-make-list) ) ;; (add-hook 'diary-display-function 'diary-fancy-display) (setq diary-display-function 'diary-fancy-display) ) ;; If this is non-nil, Emacs rings the terminal bell for appointment ;; reminders. The default is t. ;; (setq appt-audible nil) (setq appt-activate 1 ; http://www.emacswiki.org/emacs/AppointmentMode appt-display-duration 59) ;; Also from http://www.emacswiki.org/emacs/AppointmentMode (defun diary-save-hook () "Stuff to do when saving the diary files." (appt-initialize)) (defun add-diary-save-hook () "find-file-hooks hook to add the diary-save-hook when appropriate" (if (string-match "diary" (buffer-name)) (add-hook 'after-save-hook 'diary-save-hook))) (add-hook 'find-file-hooks 'add-diary-save-hook) (diary) ) ) ;; end calendar/diary stuff -------------------------------------------------- -- The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. -- U.S. Const. Amendment IV Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB