[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Hide a section/chapter with latex-fold-mode
From: |
Mandar Mitra |
Subject: |
Re: [AUCTeX] Hide a section/chapter with latex-fold-mode |
Date: |
Sat, 5 Jan 2013 21:41:57 +0530 |
Marcus Frings wrote (Sat, Jan 05, 2013 at 03:24:41PM +0100):
> This is a rather stupid question but where or at which stage do you load
> that code? In my local emacs_tex.el where I store all AUCTeX and LaTeX
> specific configuration for Emacs I had always loaded outline-minor-mode
> with
>
> (add-hook 'LaTeX-mode-hook 'outline-minor-mode)
>
> so the mode gets activated when I open a LaTeX document. Thus, I just
> added your code after this line in my emacs_tex.el file but when I
> start Emacs it complains "Symbol's value as variable is void:
> outline-minor-mode-map" because the minor mode is not loaded, yet.
How about something like the following?
(add-hook 'LaTeX-mode-hook
'(lambda ()
(outline-minor-mode 1)
(define-context-key outline-minor-mode-map
(kbd "TAB") (when (th-outline-context-p) 'org-cycle))))
HTH,
mandar.