unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: Jean Louis <bugs@gnu.support>
Cc: help-gnu-emacs@gnu.org, monnier@iro.umontreal.ca
Subject: outline-heading-alist for elisp using ";; * "
Date: Tue, 11 May 2021 15:15:57 +0200	[thread overview]
Message-ID: <trinity-461e3673-6b8d-4307-87dc-01933d6bd638-1620738957517@3c-app-mailcom-bs13> (raw)
In-Reply-To: <YJpzOuC602D/nbBm@protected.localdomain>

Have made the following function.  I alse want to be able to select the
defalt headings for elisp which I think is ";;; Heading"

Having difficulties on what modifications I need to do.

(defun headline-elisp (hdl)
   "todo"

   (pcase hdl
     (1
        (defvar rgc ";;; \\*+ "))
     (_
        (defvar rgc ";;; \\([A-Za-z]\\|[IVXLCDMivxlcdm0-9]+\\) | ")) )

   (add-hook 'emacs-lisp-mode-hook
	     (lambda ()
	       (set (make-local-variable 'outline-regexp) rgc))) )



> Sent: Wednesday, May 12, 2021 at 12:06 AM
> From: "Jean Louis" <bugs@gnu.support>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: monnier@iro.umontreal.ca, help-gnu-emacs@gnu.org
> Subject: Re: outline-heading-alist for elisp using ";; * "
>
> * Christopher Dimech <dimech@gmx.com> [2021-05-11 08:06]:
> > I am working on some ideas and recommend that emacs beefs up
> > outline-minor-mode for the different programming languages.  Outline
> > structures would then be available for use.  And if users want to
> > change they can do that as well.  We would need some docementation
> > with real examples on how to set things up.  Better still, if the
> > information is provided in the outline.el code.
>
> I have found enough information to make it working, it was in the
> variables. And much is already documented: (info "(emacs) Outline
> Mode")
>
> Now if somebody wish to customize any variable, well... where to find
> the variables?
>
> What I do is:
>
> C-h v outline-TAB TAB or
>
> C-h v outline-minorTAB TAB and I look then in descriptions of those
> variables.
>
> Emacs is in general stable editor and it is already advanced.
>
> Customizing variables and modes is on a level more than advanced. Thus
> documentation on those variables is already there, as when person is
> level more than what Emacs Manual provides, that person has to know to
> find descriptions in docstrings of variables or in the source of the
> mode.
>
>
> --
> 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/
>
>



  parent reply	other threads:[~2021-05-11 13:15 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 14:21 outline-heading-alist for elisp using ";; * " Christopher Dimech
2021-05-10 21:08 ` Philip Kaludercic
2021-05-11  1:55   ` Christopher Dimech
2021-05-11  3:00     ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-11  5:05       ` Christopher Dimech
2021-05-11 12:06         ` Jean Louis
2021-05-11 12:40           ` Christopher Dimech
2021-05-11 14:17             ` Jean Louis
2021-05-11 12:56           ` Christopher Dimech
2021-05-11 14:20             ` Jean Louis
2021-05-11 15:32               ` Christopher Dimech
2021-05-11 18:09                 ` Jean Louis
2021-05-12  1:46                   ` Christopher Dimech
2021-05-12  4:00                     ` Jean Louis
2021-05-13  3:33                       ` Christopher Dimech
2021-05-13  7:22                         ` Jean Louis
2021-05-13  7:41                           ` Christopher Dimech
2021-05-13 10:03                             ` Jean Louis
2021-05-13 10:22                               ` Christopher Dimech
2021-05-13 10:33                                 ` Jean Louis
2021-05-13 11:37                                   ` Christopher Dimech
2021-05-11 13:15           ` Christopher Dimech [this message]
2021-05-11 14:22             ` Jean Louis
2021-05-11 15:22               ` Christopher Dimech
2021-05-12  1:53       ` Christopher Dimech
2021-05-12 12:31         ` Stefan Monnier
2021-05-12 12:43           ` Christopher Dimech
2021-05-12 14:35             ` Yuri Khan
2021-05-12 14:52               ` Christopher Dimech
2021-05-13 12:29               ` Setting up user defined texinfo headlines using outline-heading-alist Christopher Dimech
2021-05-13 13:26                 ` Yuri Khan
2021-05-13 15:10                   ` Christopher Dimech
2021-05-13 16:05                     ` Yuri Khan
2021-05-13 18:29                       ` Jean Louis
2021-05-13 18:48                         ` Christopher Dimech
2021-05-13 19:01                         ` Yuri Khan
2021-05-13 18:35                       ` Christopher Dimech
2021-05-13 19:13                         ` Yuri Khan
2021-05-14  3:49                           ` Christopher Dimech
2021-05-14  3:56                             ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-14  5:25                               ` Christopher Dimech
2021-05-13 15:34                   ` Jean Louis
2021-05-11  2:52   ` outline-heading-alist for elisp using ";; * " Christopher Dimech
2021-05-11  4:50   ` Jean Louis
2021-05-11  5:17     ` Christopher Dimech
2021-05-11 20:54 ` Jeremie Juste

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-461e3673-6b8d-4307-87dc-01933d6bd638-1620738957517@3c-app-mailcom-bs13 \
    --to=dimech@gmx.com \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).