From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: org-mac-iCal: "Import diary from iCal in agenda" doesn't work Date: Fri, 04 Sep 2015 13:35:12 -0700 Message-ID: <87zj112a9r.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXxhg-0002wO-Kz for emacs-orgmode@gnu.org; Fri, 04 Sep 2015 16:35:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXxhd-0002qN-DO for emacs-orgmode@gnu.org; Fri, 04 Sep 2015 16:35:20 -0400 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:36813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXxhd-0002oB-3U for emacs-orgmode@gnu.org; Fri, 04 Sep 2015 16:35:17 -0400 Received: by pacwi10 with SMTP id wi10so34035321pac.3 for ; Fri, 04 Sep 2015 13:35:14 -0700 (PDT) In-reply-to: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tobias Frischholz Cc: Org Mode Mailing List Hello Tobias, On 4 September 2015 at 12:49 PDT, Tobias Frischholz wrote: > I have a small problem with a key binding for the agenda, which should import my iCal.app appointments into the diary. > > I have the following code from this page: > > (setq org-agenda custom-commands > '(("I" "Import diary from iCal" agenda "" > ((org-agenda-mode-hook > (lambda () > (org-mac-iCal))))))) > When I start Emacs I get this warning: > > Warning (initialization): An error occurred while loading `/Users/friolz/.emacs.d/init.el': > > Symbol's value as variable is void: custom-commands I think there's a "-" missing. The variable name is org-agenda-custom-commands ^ Best, Josiah