From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gilbert Subject: why would org-mode-hook be a void variable? (was: trouble with Imenu integration) Date: Fri, 9 Jul 2010 12:23:47 -0700 Message-ID: <6F744DED-C00A-48F2-9EFA-4473F7F0DAFF@gilbert.org> References: <9707EA08-D22C-4BDF-98E3-CA3A0CFC250C@gilbert.org> Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34761 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXJAw-00051s-TF for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 15:23:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXJAr-0000UB-Ij for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 15:23:54 -0400 Received: from [74.94.69.218] (port=64522 helo=peach.gilbert.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXJAr-0000U7-8a for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 15:23:49 -0400 Received: from [10.1.10.13] (unknown [10.1.10.13]) by peach.gilbert.org (Postfix) with ESMTP id 3B31BEA2F450 for ; Fri, 9 Jul 2010 12:23:48 -0700 (PDT) In-Reply-To: <9707EA08-D22C-4BDF-98E3-CA3A0CFC250C@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: emacs-orgmode Mailinglist 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. =97 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): >=20 > (add-hook =92org-mode-hook=20 > (lambda () (imenu-add-to-menubar "Imenu"))) >=20 > But I get this error: >=20 > Debugger entered--Lisp error: (void-variable =92org-mode-hook) > (add-hook =92org-mode-hook (lambda nil (imenu-add-to-menubar = "Imenu"))) > eval((add-hook =92org-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)