[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
headings for texinfo-mode using outline-minor-mode
From: |
pietru |
Subject: |
headings for texinfo-mode using outline-minor-mode |
Date: |
Wed, 12 May 2021 04:39:27 +0200 |
I have found it better to have a separate function that sets
"outline-heading-alist"
for a specific language, then I can do my add-hook to the "hdlevels" function.
Still I think that my crode needs some more beef.
(defun gilgamesh-texinfo-hdlevels ()
"todo"
(setq outline-heading-alist
'(("@chapter" . 2)
("@section" . 3)
("@subsection" . 4)
("@subsubsection" . 5)
;; ---------------------------------------------------
("@unnumbered" . 2)
("@unnumberedsec" . 3)
("@unnumberedsubsec" . 4)
("@unnumberedsubsubsec" . 5)
;; ---------------------------------------------------
("@appendix" . 2)
("@appendixsec" . 3)...
("@appendixsubsec" . 4)
("@appendixsubsubsec" . 5)
;; ---------------------------------------------------
("@uchap" . 2)
("@usec" . 3)
("@usubsec" . 4)
("@usubsubsec" . 5) ..)) )
(defun gilgamesh-texinfo ()
"todo"
(add-hook 'texinfo-mode-hook #'gilgamesh-texinfo-hdlevels) )
> Sent: Wednesday, May 12, 2021 at 2:16 PM
> From: pietru@caramail.com
> To: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: headings for texinfo-mode using outline-minor-mode
>
> I want to use my own heading levels in texinfo as I also have
> my own sectioning macros @uchap, @usec, @usubsec, @usubsubsec.
>
> But I require some help setting things up.
>
> (defun outline-mesh-texinfo ()
> "todo"
>
> (setq outline-heading-alist
> '(("@chapter" . 2)
> ("@section" . 3)
> ("@subsection" . 4)
> ("@subsubsection" . 5)
> ;; ---------------------------------------------------
> ("@unnumbered" . 2)
> ("@unnumberedsec" . 3)
> ("@unnumberedsubsec" . 4)
> ("@unnumberedsubsubsec" . 5)
> ;; ---------------------------------------------------
> ("@appendix" . 2)
> ("@appendixsec" . 3)...
> ("@appendixsubsec" . 4)
> ("@appendixsubsubsec" . 5)
> ;; ---------------------------------------------------
> ("@chap" . 2)
> ("@usec" . 3)
> ("@usubsec" . 4)
> ("@usubsubsec" . 5) ))
>
> (add-hook 'texinfo-mode-hook #'???)
>
> )
>
>
>
>
>
> > Sent: Wednesday, May 12, 2021 at 4:43 AM
> > From: pietru@caramail.com
> > To: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> > Subject: headings for texinfo-mode using outline-minor-mode
> >
> > What do headings start with for texinfo-mode, when using outline-minor-mode?
> >
> >
> >
> >
>
>
- Re: headings for texinfo-mode using outline-minor-mode, (continued)
- Re: headings for texinfo-mode using outline-minor-mode, Christopher Dimech, 2021/05/12
- Re: headings for texinfo-mode using outline-minor-mode, Stefan Monnier, 2021/05/13
- Re: headings for texinfo-mode using outline-minor-mode, Christopher Dimech, 2021/05/13
- Re: headings for texinfo-mode using outline-minor-mode, Robert Thorpe, 2021/05/13
- Re: headings for texinfo-mode using outline-minor-mode, Christopher Dimech, 2021/05/13
- Re: headings for texinfo-mode using outline-minor-mode, Jean Louis, 2021/05/13
- Re: headings for texinfo-mode using outline-minor-mode, Christopher Dimech, 2021/05/13
- Re: headings for texinfo-mode using outline-minor-mode, Christopher Dimech, 2021/05/12
Re: headings for texinfo-mode using outline-minor-mode, pietru, 2021/05/12
headings for texinfo-mode using outline-minor-mode, pietru, 2021/05/11
- headings for texinfo-mode using outline-minor-mode,
pietru <=