From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: latex-mode hook? Date: Sun, 07 Sep 2014 08:43:25 +0100 Message-ID: <87bnqr27vm.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1410075850 4546 80.91.229.3 (7 Sep 2014 07:44:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2014 07:44:10 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 07 09:44:05 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XQX8l-0003fE-0O for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Sep 2014 09:44:03 +0200 Original-Received: from localhost ([::1]:37420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQX8g-0000Yu-Ht for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Sep 2014 03:43:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQX8S-0000Yk-5W for help-gnu-emacs@gnu.org; Sun, 07 Sep 2014 03:43:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQX8H-0002RY-Bh for help-gnu-emacs@gnu.org; Sun, 07 Sep 2014 03:43:44 -0400 Original-Received: from avasout04.plus.net ([212.159.14.19]:58551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQX8H-0002R4-60 for help-gnu-emacs@gnu.org; Sun, 07 Sep 2014 03:43:33 -0400 Original-Received: from london ([87.114.21.185]) by avasout04 with smtp id o7jS1o0013zbsun017jTtp; Sun, 07 Sep 2014 08:43:27 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=Uv7tNoAB c=1 sm=1 tr=0 a=GsW1MP+PcuR/gQKw6AGiHw==:117 a=GsW1MP+PcuR/gQKw6AGiHw==:17 a=0Bzu9jTXAAAA:8 a=-6EpGbjPKfkA:10 a=ihvODaAuJD4A:10 a=EBOSESyhAAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=_2JuLCGGOvN7eAqiWUUA:9 a=NpgY_YrjD4yU-DQd:21 a=ExAAtMLDw0IzUWsH:21 a=bhIzkISxuTiKufU7hyoA:9 X-AUTH: skimble:2500 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 212.159.14.19 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99677 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. =2D-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) =2D-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. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.93.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJUDAyeAAoJEDaBgBkK+INbI0oQAMiEsWGdVx/VQVCaJwioB0jQ xDoWaQXECVUh2bSzAb7WCtFAvmcdu4ub40yjLF5NpfwUZ6gOi2bnIeDlJY+yIV2Q 61geTjJ1qYRhtFdHNaWXwSGkiPqnKbJmEb9tUvQrAjRTyvmUL/E5Y/yyHkJfzkxS 4MEO/DLeiYxkYCqj/mQUbZNgQgWIcjW6WbZ3hUTiIunUFzcmkAVsZmWrG+eu6Dof aKXUiMNmbKcvg6rCBMBBAMwMmluUy/Aal1+ALiugXwyYh90jUJXOC/TXiikl18Ly CyUf3SAF+sCtADGglnnru6GVv2Jwe+hHYOaY3Q8LFNEgSkm9PtgVGqWU73l+GsSX tef2qqnPHrwNh51ltR2+7p05H6ULEsVLKUg6UlKDSiUfTeczPsFDnzJ5EhgwIZKG uampkHAB/6HRH0L+xE4alEG7t2c7GIvmjy36vM62CgfdI3HHg0o7d5zy8mOns8Kw jREdX8rPkoHsm+2Nuggrk4ZLVrH9Jj9CMv8bcq8jdA3GB53VnwP48WpPzoioSflT HBXPxP7zMcr9ssHdn5pEnLfyQ4jEhcfWgGv9Re9wq6yIYsLPcDpegWCGdEc5gCKp P2K7QSlVEwdiuYNUjN4IxZOekiNS1J1+DmuxulmEZa5Yio62oHUOWsyItVl6v9b1 KLBjL0XVghieWAvW316D =g89f -----END PGP SIGNATURE----- --=-=-=--