[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: outline-heading-alist for elisp using ";; * "
From: |
Christopher Dimech |
Subject: |
Re: outline-heading-alist for elisp using ";; * " |
Date: |
Tue, 11 May 2021 04:52:37 +0200 |
Have done this way, which works. But I want more that what the code produces.
Currently, the number af * do not determine heading levels as in org-mode.
(add-hook 'emacs-lisp-mode-hook #'outline-minor-mode)
(add-hook 'emacs-lisp-mode-hook
(lambda ()
(set (make-local-variable 'outline-regexp) "*+")))
> Sent: Tuesday, May 11, 2021 at 9:08 AM
> From: "Philip Kaludercic" <philipk@posteo.net>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: outline-heading-alist for elisp using ";; * "
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > I want to use ";; * " and so forth for subheadings but using the following
> > code had
> > no effect.
> >
> >
> > (setq hstar
> > '( (";; * " . 1)
> > (";; ** " . 2)
> > (";; *** " . 3)
> > (";; **** " . 4)
> > (";; ***** " . 5)
> > (";; ****** " . 6)
> > (";; ******* " . 7)
> > (";; ******** " . 8) ))
>
> Why not use outline-regexp? ";; \\*+" should do the same job, if I'm not
> mistaken.
>
> > ( (emacs-lisp-mode . (
> > (outline-heading-alist . hstar) )))
> >
>
> Where are you evaluating this? In .dir-locals.el? If so, what is the
> local value of outline-heading-alist in an emacs-lisp buffer?
>
>
>
>
> --
> Philip K.
>
- Re: Setting up user defined texinfo headlines using outline-heading-alist, (continued)
- Re: Setting up user defined texinfo headlines using outline-heading-alist, Christopher Dimech, 2021/05/13
- Re: Setting up user defined texinfo headlines using outline-heading-alist, Yuri Khan, 2021/05/13
- Re: Setting up user defined texinfo headlines using outline-heading-alist, Christopher Dimech, 2021/05/13
- Re: Setting up user defined texinfo headlines using outline-heading-alist, Stefan Monnier, 2021/05/13
- Re: Setting up user defined texinfo headlines using outline-heading-alist, Christopher Dimech, 2021/05/14
- Re: Setting up user defined texinfo headlines using outline-heading-alist, Jean Louis, 2021/05/13
Re: outline-heading-alist for elisp using ";; * ",
Christopher Dimech <=
Re: outline-heading-alist for elisp using ";; * ", Jean Louis, 2021/05/11
Re: outline-heading-alist for elisp using ";; * ", Jeremie Juste, 2021/05/11