help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

latex-mode hook?


From: Sharon Kimble
Subject: latex-mode hook?
Date: Sun, 07 Sep 2014 08:43:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux)

I'm writing a lot of latex at the moment and have tried to get the Imenu
automatically working there, just like in org-mode it works.

--8<---------------cut here---------------start------------->8---
(add-hook 'org-mode-hook
(lambda () (imenu-add-to-menubar "Imenu")))
(setq org-imenu-depth 6)

(add-hook 'latex-mode-hook
(lambda () (imenu-add-to-menubar "Imenu")))
(setq latex-imenu-depth 6)
--8<---------------cut here---------------end--------------->8---

The org-mode hook works but the latex-mode one does not. How then can I
get the latex one working please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.93.1

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]