all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.