emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Michael Gilbert <mcg@gilbert.org>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: why would org-mode-hook be a void variable? (was: trouble	with Imenu integration)
Date: Fri, 09 Jul 2010 21:31:51 +0100	[thread overview]
Message-ID: <87lj9kieh4.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <6F744DED-C00A-48F2-9EFA-4473F7F0DAFF@gilbert.org>

[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]

On Fri, 9 Jul 2010 12:23:47 -0700, Michael Gilbert <mcg@gilbert.org> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Should you not quote the lambda expression?  As in

  (add-hook 'org-mode-hook '(lambda () ...))


[-- Attachment #2: Type: text/plain, Size: 75 bytes --]

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2010-07-09 20:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-09 10:33 trouble with Imenu integration Michael Gilbert
2010-07-09 19:23 ` why would org-mode-hook be a void variable? (was: trouble with Imenu integration) Michael Gilbert
2010-07-09 20:09   ` why would org-mode-hook be a void variable? Bernt Hansen
2010-07-11 23:43     ` Michael Gilbert
2010-07-09 20:31   ` Eric S Fraga [this message]
2010-07-16 17:36 ` trouble with Imenu integration David Maus
2010-07-16 20:21   ` possible single-quote bug in PDF docs (was: trouble with Imenu integration) Michael Gilbert
2010-07-16 20:33     ` Carsten Dominik
2010-07-16 22:21       ` Michael Gilbert
2010-07-17  6:34       ` David Maus
2010-07-18  6:05         ` Carsten Dominik
2010-07-18  7:45           ` [PATCH] Use proper quote and backtick in PDF output David Maus
2010-07-18  9:08             ` Carsten Dominik
2010-07-18  9:05           ` possible single-quote bug in PDF docs (was: trouble with Imenu integration) David Maus
2010-07-18  9:51             ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lj9kieh4.wl%ucecesf@ucl.ac.uk \
    --to=ucecesf@ucl.ac.uk \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=mcg@gilbert.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).