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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

outline-regexp) using ";; *+ " for elisp code


From: Christopher Dimech
Subject: outline-regexp) using ";; *+ " for elisp code
Date: Tue, 11 May 2021 09:16:27 +0200

Have tried the following, but the regexp is not taking effect when I call
"Hide body".

In my elisp file I have used

;;; ** alpha-bounds

--------

   (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)))

> Sent: Tuesday, May 11, 2021 at 7:05 PM
> From: "Joost Kremers" <joostkremers@fastmail.fm>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: outline-regexp) using ";; *+ " for elisp code
>
>
> On Tue, May 11 2021, Christopher Dimech wrote:
> > I am hoping to have headline levels using comment loni followed by stars.
> >
> > I mould need some adaptation to get the regular expression right, becouse
> > ";; *+ " does not do the job.
>
> * is special in regexes. You'll need to quote it.
>
> --
> Joost Kremers
> Life has its moments
>



reply via email to

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