From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: (gnus-icalendar-org-setup) not evaluated in .emacs? Date: Thu, 14 Sep 2017 16:02:19 +0200 Message-ID: <871sn91iqc.fsf@hornfels.zedat.fu-berlin.de> References: <87a81x3e8n.fsf@hornfels.zedat.fu-berlin.de> <87wp517kut.fsf@t3610> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsUj4-0006bm-P6 for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:02:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsUj0-0000fB-Nj for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:02:42 -0400 Received: from [195.159.176.226] (port=37248 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsUj0-0000eh-H0 for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:02:38 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dsUip-0005RS-87 for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 16:02:27 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Cc: info-gnus-english@gnu.org Eric S Fraga writes: > On Thursday, 14 Sep 2017 at 09:56, Loris Bennett wrote: >> Hi, >> >> I have the following in my .emacs: >> >> (require 'gnus-icalendar) >> (gnus-icalendar-setup) >> (gnus-icalendar-org-setup) > > I have one setting alongside these: > > (setq gnus-icalendar-org-capture-file "...path to my diary.org") > > I wonder whether gnus needs this to be defined for it to show all the > buttons? Maybe check the value of this before and after? > > I always see all the buttons (I think). Rereading this, I decided to move the settings out from the Customize block to before call to gnus-icalendar-org-setup: (require 'gnus-icalendar) (setq gnus-icalendar-org-capture-file "~/git/org.git/gtd.org") (setq gnus-icalendar-org-capture-headline (quote ("Exchange"))) (gnus-icalendar-setup) (gnus-icalendar-org-setup) Now I get all the buttons first time round and didn't have to resort to a flaky hack, so thanks, Eric. But should this kind of ordering dependency happen? Or should my Customize block just be at the beginning of my .emacs rather than at the end? Cheers, Loris -- This signature is currently under construction.