[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 13:22:18 +0200 |
Hi Joost,
Could you assist with another capability. I would like to use a keybinding
to cycle the folding of headers only.
"H-<left>" fold
"H-<right>" unfold
Regards
Christopher
> Sent: Tuesday, May 11, 2021 at 10:29 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:
> > defvar-local is buffer-local variable. I would think that I could use defvar
> > as the setting rather than a buffer-local variable, as the value would be
> > the
> > same for all elisp files.
>
> =defvar= and =defvar-local= define global variables. The difference is that
> variables defined with =defvar-local= become buffer-local whenever they are
> set
> (with =setq=). But the value set with the =defvar-local= expression itself is
> the default value, which is the value that applies in buffers that do not have
> their own local value for said variable. (You can set a default value
> explicitly
> with =setq-default=.)
>
>
>
> --
> Joost Kremers
> Life has its moments
>
- outline-regexp) using ";; *+ " for elisp code, Christopher Dimech, 2021/05/10
- Re: outline-regexp) using ";; *+ " for elisp code, Joost Kremers, 2021/05/11
- outline-regexp) using ";; *+ " for elisp code, Christopher Dimech, 2021/05/11
- outline-regexp) using ";; *+ " for elisp code, Christopher Dimech, 2021/05/11
- outline-regexp) using ";; *+ " for elisp code, Christopher Dimech, 2021/05/11
- Re: outline-regexp) using ";; *+ " for elisp code, Joost Kremers, 2021/05/11
- outline-regexp) using ";; *+ " for elisp code, Christopher Dimech, 2021/05/11
- outline-regexp) using ";; *+ " for elisp code, Christopher Dimech, 2021/05/11
- Re: outline-regexp) using ";; *+ " for elisp code, Joost Kremers, 2021/05/11
- outline-regexp) using ";; *+ " for elisp code,
Christopher Dimech <=
- Re: outline-regexp) using ";; *+ " for elisp code, Jean Louis, 2021/05/11