emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mac-iCal: "Import diary from iCal in agenda" doesn't work
@ 2015-09-04 19:49 Tobias Frischholz
  2015-09-04 20:35 ` Josiah Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Frischholz @ 2015-09-04 19:49 UTC (permalink / raw)
  To: Org Mode Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 717 bytes --]

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


Manually importing the dates via M-x org-mac-iCal is working fine.

Best regards,
Tobias Frischholz

PGP PUBLIC KEY: http://pgp.mit.edu/pks/lookup?search=0xCD463AC1&op=index


[-- Attachment #1.2: Type: text/html, Size: 2398 bytes --]

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-mac-iCal: "Import diary from iCal in agenda" doesn't work
  2015-09-04 19:49 org-mac-iCal: "Import diary from iCal in agenda" doesn't work Tobias Frischholz
@ 2015-09-04 20:35 ` Josiah Schwab
  2015-09-04 22:35   ` Josiah Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Josiah Schwab @ 2015-09-04 20:35 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-mac-iCal: "Import diary from iCal in agenda" doesn't work
  2015-09-04 20:35 ` Josiah Schwab
@ 2015-09-04 22:35   ` Josiah Schwab
  0 siblings, 0 replies; 3+ messages in thread
From: Josiah Schwab @ 2015-09-04 22:35 UTC (permalink / raw)
  To: Tobias Frischholz; +Cc: Org Mode Mailing List


On  4 September 2015 at 13:35 PDT, Josiah Schwab wrote:

> I think there's a "-" missing.  The variable name is
>
>   org-agenda-custom-commands
>             ^

This is also now fixed on the website (worg commit 60c0b12).

Best,
Josiah

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-04 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-04 19:49 org-mac-iCal: "Import diary from iCal in agenda" doesn't work Tobias Frischholz
2015-09-04 20:35 ` Josiah Schwab
2015-09-04 22:35   ` Josiah Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).