From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Chris Jones Newsgroups: gmane.emacs.help Subject: Re: using fume with gnu emacs 21.2.1 Date: Wed, 05 Mar 2003 21:33:21 +0000 Organization: ntl Cablemodem News Service Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <9ir9a.13587$EN3.108819@newsfep4-glfd.server.ntli.net> <84ptp51ruw.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit X-Trace: main.gmane.org 1046901460 20615 80.91.224.249 (5 Mar 2003 21:57:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2003 21:57:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 05 22:57:37 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18qgtM-0005Lv-00 for ; Wed, 05 Mar 2003 22:57:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18qgYa-0002eZ-02 for gnu-help-gnu-emacs@m.gmane.org; Wed, 05 Mar 2003 16:36:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!newspeer1-gui.server.ntli.net!ntli.net!newsfep4-glfd.server.ntli.net.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 User-Agent: KNode/0.7.1 Original-NNTP-Posting-Host: 81.96.65.202 Original-X-Complaints-To: abuse@ntlworld.com Original-X-Trace: newsfep4-glfd.server.ntli.net 1046899999 81.96.65.202 (Wed, 05 Mar 2003 21:33:19 GMT) Original-NNTP-Posting-Date: Wed, 05 Mar 2003 21:33:19 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:110872 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7373 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7373 Kai Großjohann wrote: > Chris Jones writes: > >> Is it possible to install and use the fume package (or something similar) >> which is normally installed with XEmacs in Gnu emacs (in particular >> version 21.2.1) ? > > M-x imenu RET > M-x imenu-add-menubar-index RET Thanks, thats what I was looking for ! One problem I have with this is that it does not seem to automatically update the menu when I switch between buffers or frames. I have to run "rescan" manaully. I found via a www search that adding (require 'imenu) (add-hook 'c++-mode-hook (function (lambda () (imenu-add-menubar-index)))) (add-hook 'c-mode-hook (function (lambda () (imenu-add-menubar-index)))) (add-hook 'fortran-mode-hook (function (lambda () (imenu-add-menubar-index)))) to my .emacs makes imenu start automatically, but is there anything I can add to make it up rescan automatically ? I found references to a `imenu-auto-rescan' variable but since I know next to nothing about lisp, I can't seem to get it to work.....