From: pietru@caramail.com
To: pietru@caramail.com
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: headings for texinfo-mode using outline-minor-mode
Date: Wed, 12 May 2021 04:39:27 +0200 [thread overview]
Message-ID: <trinity-76a3f05a-9bc5-4389-bf30-04879c21d0b6-1620787167789@3c-app-mailcom-bs13> (raw)
In-Reply-To: <trinity-ea5985f7-aab7-4108-a036-954552e6f6cb-1620785804615@3c-app-mailcom-bs13>
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?
> >
> >
> >
> >
>
>
prev parent reply other threads:[~2021-05-12 2:39 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-11 16:43 headings for texinfo-mode using outline-minor-mode pietru
2021-05-11 17:26 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-12 4:43 ` pietru
2021-05-12 12:34 ` Stefan Monnier
2021-05-12 12:48 ` pietru
2021-05-12 14:04 ` Stefan Monnier
2021-05-12 14:15 ` pietru
2021-05-13 3:00 ` Christopher Dimech
2021-05-12 12:36 ` Jean Louis
2021-05-13 2:50 ` Christopher Dimech
2021-05-13 4:28 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-13 4:46 ` Christopher Dimech
2021-05-13 9:06 ` Robert Thorpe
2021-05-13 9:39 ` Christopher Dimech
2021-05-13 7:20 ` Jean Louis
2021-05-13 7:36 ` Christopher Dimech
2021-05-13 3:57 ` Christopher Dimech
2021-05-12 5:11 ` pietru
2021-05-12 2:16 ` pietru
2021-05-12 2:39 ` pietru [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-76a3f05a-9bc5-4389-bf30-04879c21d0b6-1620787167789@3c-app-mailcom-bs13 \
--to=pietru@caramail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.