From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga 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 Message-ID: <87lj9kieh4.wl%ucecesf@ucl.ac.uk> References: <9707EA08-D22C-4BDF-98E3-CA3A0CFC250C@gilbert.org> <6F744DED-C00A-48F2-9EFA-4473F7F0DAFF@gilbert.org> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Fri_Jul__9_21:31:51_2010-1" Return-path: Received: from [140.186.70.92] (port=39012 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXKEn-0004j8-2e for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:31:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXKEl-0003dy-Re for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:31:56 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:57617) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXKEl-0003du-Na for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:31:55 -0400 In-Reply-To: <6F744DED-C00A-48F2-9EFA-4473F7F0DAFF@gilbert.org> 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 --Multipart_Fri_Jul__9_21:31:51_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 9 Jul 2010 12:23:47 -0700, Michael Gilbert wrote: >=20 > I guess my main question is why org-mode-hook would be a void variable. D= id I not capture something from the instructions in the manual? Is there so= mething that needs to be set before hand? I'm just not sure where to look. >=20 > =E2=80=94 Michael >=20 >=20 > On Jul 9,2010, at 3:33 AM, Michael Gilbert wrote: >=20 > > Following the instructions from manual, I have this near the end of my = startup 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 "= Imenu"))) > > eval((add-hook =E2=80=99org-mode-hook (lambda nil (imenu-add-to-menu= bar "Imenu")))) > > eval-last-sexp-1(nil) > > eval-last-sexp(nil) > > call-interactively(eval-last-sexp nil nil) >=20 >=20 > _______________________________________________ > 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 () ...)) --Multipart_Fri_Jul__9_21:31:51_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Fri_Jul__9_21:31:51_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Multipart_Fri_Jul__9_21:31:51_2010-1--