unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Auto running "imenu-add-to-menubar" command on open
@ 2007-08-16  6:24 anders
  2007-08-16 11:25 ` Daniel Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: anders @ 2007-08-16  6:24 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!
I got help before, becurse i like to have a list of function for my C-
program
i was told about    imenu-add-to-menubar   witch is GREAT.

But everytime i open a file i have to enter this command, is there
a way to tell Emacs to run this allwys on open of a c-file.

// Anders

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Auto running "imenu-add-to-menubar" command on open
  2007-08-16  6:24 Auto running "imenu-add-to-menubar" command on open anders
@ 2007-08-16 11:25 ` Daniel Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jensen @ 2007-08-16 11:25 UTC (permalink / raw)
  To: help-gnu-emacs

anders <anders.u.persson@gmail.com> writes:

> I got help before, becurse i like to have a list of function for my C-
> program
> i was told about    imenu-add-to-menubar   witch is GREAT.
>
> But everytime i open a file i have to enter this command, is there
> a way to tell Emacs to run this allwys on open of a c-file.

(add-hook 'c-mode-hook 'imenu-add-to-menubar)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-16 11:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-16  6:24 Auto running "imenu-add-to-menubar" command on open anders
2007-08-16 11:25 ` Daniel Jensen

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).