From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Newsgroups: gmane.emacs.help,gmane.emacs.orgmode Subject: Re: [O] org-calendar-holiday and local holidays Date: Mon, 02 Mar 2015 18:53:46 -0500 Message-ID: <87k2yz7y7p.fsf@yale.edu> References: <87pp8sz70q.fsf@hornet.workgroup> <871tl8s0f0.fsf@gmail.com> <87r3t7z4o4.fsf@hornet.workgroup> <87sidn83k3.fsf@yale.edu> <87r3t72eoc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1425340480 24451 80.91.229.3 (2 Mar 2015 23:54:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2015 23:54:40 +0000 (UTC) Cc: emacs-orgmode@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 00:54:29 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 1YSaAO-000575-O0 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 00:54:28 +0100 Original-Received: from localhost ([::1]:60628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSaAO-0006hf-1U for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 18:54:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSaAB-0006g2-Js for help-gnu-emacs@gnu.org; Mon, 02 Mar 2015 18:54:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSaA7-0003en-9B for help-gnu-emacs@gnu.org; Mon, 02 Mar 2015 18:54:15 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:36757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSaA7-0003ea-2z for help-gnu-emacs@gnu.org; Mon, 02 Mar 2015 18:54:11 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YSaA5-0004zP-EN for help-gnu-emacs@gnu.org; Tue, 03 Mar 2015 00:54:09 +0100 Original-Received: from nat-130-132-173-151.central.yale.edu ([130.132.173.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2015 00:54:09 +0100 Original-Received: from jorge.alfaro-murillo by nat-130-132-173-151.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2015 00:54:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.emacs.help Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-130-132-173-151.central.yale.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:qQIyqVKoVUom9ygbHQr5GNxMvdY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:102990 gmane.emacs.orgmode:95604 Archived-At: Alexis writes: > i just tried moving my `(setq holiday-local-holidays ...)` to > the very first line of my config setup, and lo, that does result > in local holidays appearing in my Org agenda. I am glad it worked out for you. > However, my config setup is a 3000+ line Org Babel file, in > which i group together things that are related in my mind, and > the setup for the calendar is about a third of the way through > this. That is definitely the way to go, I do the same: http://alfaromurillo.bitbucket.org/dotemacs.html > Thus [...] works better in my context, and is more robust, > longer-term, than my original suggestion [...] So, thank you! You are welcome. However, I think that it would be better to check what exactly loads holidays.el in your configuration (I will venture a guess that it is a call to org-agenda), and wrap that part in a (eval-after-load 'holidays '(progn ...)), then you can get rid of unnecessary code and you do not need to move things around in your nicely organized org file ;-) Best, -- Jorge. From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Subject: Re: org-calendar-holiday and local holidays Date: Mon, 02 Mar 2015 18:53:46 -0500 Message-ID: <87k2yz7y7p.fsf@yale.edu> References: <87pp8sz70q.fsf@hornet.workgroup> <871tl8s0f0.fsf@gmail.com> <87r3t7z4o4.fsf@hornet.workgroup> <87sidn83k3.fsf@yale.edu> <87r3t72eoc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: 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 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org To: help-gnu-emacs@gnu.org Cc: emacs-orgmode@gnu.org List-Id: emacs-orgmode.gnu.org Alexis writes: > i just tried moving my `(setq holiday-local-holidays ...)` to > the very first line of my config setup, and lo, that does result > in local holidays appearing in my Org agenda. I am glad it worked out for you. > However, my config setup is a 3000+ line Org Babel file, in > which i group together things that are related in my mind, and > the setup for the calendar is about a third of the way through > this. That is definitely the way to go, I do the same: http://alfaromurillo.bitbucket.org/dotemacs.html > Thus [...] works better in my context, and is more robust, > longer-term, than my original suggestion [...] So, thank you! You are welcome. However, I think that it would be better to check what exactly loads holidays.el in your configuration (I will venture a guess that it is a call to org-agenda), and wrap that part in a (eval-after-load 'holidays '(progn ...)), then you can get rid of unnecessary code and you do not need to move things around in your nicely organized org file ;-) Best, -- Jorge.