[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] why would org-mode-hook be a void variable? (was: trouble
From: |
Eric S Fraga |
Subject: |
Re: [Orgmode] why would org-mode-hook be a void variable? (was: trouble with Imenu integration) |
Date: |
Fri, 09 Jul 2010 21:31:51 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
On Fri, 9 Jul 2010 12:23:47 -0700, Michael Gilbert <address@hidden> wrote:
>
> I guess my main question is why org-mode-hook would be a void variable. Did I
> not capture something from the instructions in the manual? Is there something
> that needs to be set before hand? I'm just not sure where to look.
>
> — Michael
>
>
> On Jul 9,2010, at 3:33 AM, Michael Gilbert wrote:
>
> > Following the instructions from manual, I have this near the end of my
> > startup file (I hope that is copied correctly):
> >
> > (add-hook ’org-mode-hook
> > (lambda () (imenu-add-to-menubar "Imenu")))
> >
> > But I get this error:
> >
> > Debugger entered--Lisp error: (void-variable ’org-mode-hook)
> > (add-hook ’org-mode-hook (lambda nil (imenu-add-to-menubar "Imenu")))
> > eval((add-hook ’org-mode-hook (lambda nil (imenu-add-to-menubar
> > "Imenu"))))
> > eval-last-sexp-1(nil)
> > eval-last-sexp(nil)
> > call-interactively(eval-last-sexp nil nil)
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Should you not quote the lambda expression? As in
(add-hook 'org-mode-hook '(lambda () ...))
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
- [Orgmode] trouble with Imenu integration, Michael Gilbert, 2010/07/09
- [Orgmode] why would org-mode-hook be a void variable? (was: trouble with Imenu integration), Michael Gilbert, 2010/07/09
- Re: [Orgmode] trouble with Imenu integration, David Maus, 2010/07/16
- [Orgmode] possible single-quote bug in PDF docs (was: trouble with Imenu integration), Michael Gilbert, 2010/07/16
- Re: [Orgmode] possible single-quote bug in PDF docs (was: trouble with Imenu integration), Carsten Dominik, 2010/07/16
- Re: [Orgmode] possible single-quote bug in PDF docs (was: trouble with Imenu integration), Michael Gilbert, 2010/07/16
- Re: [Orgmode] possible single-quote bug in PDF docs (was: trouble with Imenu integration), David Maus, 2010/07/17
- Re: [Orgmode] possible single-quote bug in PDF docs (was: trouble with Imenu integration), Carsten Dominik, 2010/07/18
- [Orgmode] [PATCH] Use proper quote and backtick in PDF output, David Maus, 2010/07/18
- Re: [Orgmode] [PATCH] Use proper quote and backtick in PDF output, Carsten Dominik, 2010/07/18
- Re: [Orgmode] possible single-quote bug in PDF docs (was: trouble with Imenu integration), David Maus, 2010/07/18
- Re: [Orgmode] possible single-quote bug in PDF docs (was: trouble with Imenu integration), Carsten Dominik, 2010/07/18