From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: why would org-mode-hook be a void variable? Date: Fri, 09 Jul 2010 16:09:16 -0400 Message-ID: <87y6dk8ljn.fsf@gollum.intra.norang.ca> References: <9707EA08-D22C-4BDF-98E3-CA3A0CFC250C@gilbert.org> <6F744DED-C00A-48F2-9EFA-4473F7F0DAFF@gilbert.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=51300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXJt6-0006yl-9t for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:09:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXJt4-00087s-VU for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:09:32 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:50598) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXJt4-00087i-Ts for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:09:30 -0400 In-Reply-To: <6F744DED-C00A-48F2-9EFA-4473F7F0DAFF@gilbert.org> (Michael Gilbert's message of "Fri\, 9 Jul 2010 12\:23\:47 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Gilbert Cc: emacs-orgmode Mailinglist Michael Gilbert writes: > 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. Did you initialize org-mode with (require 'org-install) ? -Bernt > > =E2=80=94 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 s= tartup file (I hope that is copied correctly): >>=20 >> (add-hook =E2=80=99org-mode-hook=20 >> (lambda () (imenu-add-to-menubar "Imenu"))) >>=20 >> But I get this error: >>=20 >> Debugger entered--Lisp error: (void-variable =E2=80=99org-mode-hook) >> (add-hook =E2=80=99org-mode-hook (lambda nil (imenu-add-to-menubar "I= menu"))) >> eval((add-hook =E2=80=99org-mode-hook (lambda nil (imenu-add-to-menub= ar "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