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

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

Re: subheadings for elisp files


From: Jean Louis
Subject: Re: subheadings for elisp files
Date: Sun, 23 May 2021 22:55:27 +0300
User-agent: Mutt/2.0.6 (2021-03-06)

* wael-zwaiter@gmx.com <wael-zwaiter@gmx.com> [2021-05-23 22:44]:
> > Is it like outline heading related?
> 
> Yes.  I tried to search for some information but did not find.

I use this settings as I like to have this below as header:

;;;; ↝

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((emacs-lisp-mode . ((outline-heading-alist . '((";;;; ↝" . 2))))))

Then I have this customization:

Hide Outline Minor Mode Cycle: Boolean: Toggle  on (non-nil)
    State : SAVED and set.
   Enable cycling of headings in ‘outline-minor-mode’. More

Hide Outline Minor Mode Highlight: Choice: Value Menu Append outline faces to 
major mode faces
    State : SAVED and set.
   Highlight headings in ‘outline-minor-mode’ using font-lock keywords. More

Hide Outline Minor Mode Prefix: Key sequence: C-c C-d

Then it works to press TAB and cycle and I have somewhat easer prefix
C-c C-d

It should work, just define your heading, please see:

{C-h v outline-heading-alist RET} if you wish to customize headings. I
have placed it in .dir-locals directory

The Power of Outline Minor Mode for Emacs
https://hyperscope.link/3/7/2/7/9/The-Power-of-Outline-Minor-Mode-for-Emacs-37279.html



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



reply via email to

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