help-gnu-emacs
[Top][All Lists]
Advanced

[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/
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]