[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
outline-heading-alist for elisp using ";; * "
From: |
Christopher Dimech |
Subject: |
outline-heading-alist for elisp using ";; * " |
Date: |
Tue, 11 May 2021 07:17:46 +0200 |
This is what I have done
(add-hook 'emacs-lisp-mode-hook #'outline-minor-mode)
;; set regularity condition
;;(setq rgc ";;; \\*+ ")
(setq rgc ";;; \\([A-Za-z]\\|[IVXLCDMivxlcdm0-9]+\\) | ")
(add-hook 'emacs-lisp-mode-hook
(lambda ()
(set (make-local-variable 'outline-regexp) rgc)))
Now starts the task of setting a keybinding that if I continue to press it
will cycle the folding/unfolding of headlines only. And a different keybinding
that cycles the folding/unfolding of code.
Regards
Christopher
> Sent: Tuesday, May 11, 2021 at 4:50 PM
> From: "Jean Louis" <bugs@gnu.support>
> To: "Philip Kaludercic" <philipk@posteo.net>
> Cc: "Christopher Dimech" <dimech@gmx.com>, "Help Gnu Emacs"
> <help-gnu-emacs@gnu.org>
> Subject: Re: outline-heading-alist for elisp using ";; * "
>
> * Philip Kaludercic <philipk@posteo.net> [2021-05-11 00:09]:
> > Why not use outline-regexp? ";; \\*+" should do the same job, if I'm not
> > mistaken.
>
> It works here, great.
>
> --
> Jean
>
> Take action in Free Software Foundation campaigns:
> https://www.fsf.org/campaigns
>
> Sign an open letter in support of Richard M. Stallman
> https://stallmansupport.org/
> https://rms-support-letter.github.io/
>
>
>
- 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, 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, 2021/05/10
Re: outline-heading-alist for elisp using ";; * ", Jean Louis, 2021/05/11
- outline-heading-alist for elisp using ";; * ",
Christopher Dimech <=
Re: outline-heading-alist for elisp using ";; * ", Jeremie Juste, 2021/05/11