unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Switching show-paren-mode off
@ 2022-07-14 20:13 carlmarcos--- via Users list for the GNU Emacs text editor
  2022-07-14 21:25 ` [External] : " Drew Adams
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-07-14 20:13 UTC (permalink / raw)
  To: Help Gnu Emacs


How can I test whether `show-paren-mode' is enabled, so I can switch it off ?



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [External] : Switching show-paren-mode off
  2022-07-14 20:13 Switching show-paren-mode off carlmarcos--- via Users list for the GNU Emacs text editor
@ 2022-07-14 21:25 ` Drew Adams
  2022-07-14 21:27 ` Thibaut Verron
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2022-07-14 21:25 UTC (permalink / raw)
  To: carlmarcos@tutanota.com; +Cc: 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'

[-- Attachment #1: Type: text/plain, Size: 113 bytes --]

> How can I test whether `show-paren-mode' is enabled,
> so I can switch it off ?

`C-h v show-paren-mode'


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 12491 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Switching show-paren-mode off
  2022-07-14 20:13 Switching show-paren-mode off carlmarcos--- via Users list for the GNU Emacs text editor
  2022-07-14 21:25 ` [External] : " Drew Adams
@ 2022-07-14 21:27 ` Thibaut Verron
       [not found] ` <CAFsi02RM-wL=XxXAUM_2_Omwp=dALfJU18RFd0idD2VtTYcKMw@mail.gmail.com-N6ybAFh----2>
  2022-07-20 15:51 ` Emanuel Berg
  3 siblings, 0 replies; 6+ messages in thread
From: Thibaut Verron @ 2022-07-14 21:27 UTC (permalink / raw)
  To: carlmarcos; +Cc: Help Gnu Emacs

Hi,

The value of the variable show-paren-mode will be t if the mode is enabled.

Alternatively, if all you want is to disable the mode, (show-paren-mode -1)
will do that.

Best wishes,
Thibaut

Le jeu. 14 juil. 2022 à 22:14, carlmarcos--- via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> a écrit :

>
> How can I test whether `show-paren-mode' is enabled, so I can switch it
> off ?
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Switching show-paren-mode off
       [not found] ` <CAFsi02RM-wL=XxXAUM_2_Omwp=dALfJU18RFd0idD2VtTYcKMw@mail.gmail.com-N6ybAFh----2>
@ 2022-07-15 21:09   ` carlmarcos--- via Users list for the GNU Emacs text editor
  2022-07-15 21:28     ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 6+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-07-15 21:09 UTC (permalink / raw)
  To: Thibaut Verron; +Cc: Help Gnu Emacs


Jul 14, 2022, 21:27 by thibaut.verron@gmail.com:

> Hi,
>
> The value of the variable show-paren-mode will be t if the mode is enabled.
>

Would the following be sufficient to enable the mode if not already enabled?

(unless show-paren-mode (show-paren-mode 1))


> Alternatively, if all you want is to disable the mode, (show-paren-mode -1)
> will do that.
>
> Best wishes,
> Thibaut
>
> Le jeu. 14 juil. 2022 à 22:14, carlmarcos--- via Users list for the GNU
> Emacs text editor <help-gnu-emacs@gnu.org> a écrit :
>
>>
>> How can I test whether `show-paren-mode' is enabled, so I can switch it
>> off ?
>>




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Switching show-paren-mode off
  2022-07-15 21:09   ` carlmarcos--- via Users list for the GNU Emacs text editor
@ 2022-07-15 21:28     ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2022-07-15 21:28 UTC (permalink / raw)
  To: help-gnu-emacs

> (unless show-paren-mode (show-paren-mode 1))

Yes, tho just

    (show-paren-mode 1)

would work as well (potentially doing a bit more work).


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Switching show-paren-mode off
  2022-07-14 20:13 Switching show-paren-mode off carlmarcos--- via Users list for the GNU Emacs text editor
                   ` (2 preceding siblings ...)
       [not found] ` <CAFsi02RM-wL=XxXAUM_2_Omwp=dALfJU18RFd0idD2VtTYcKMw@mail.gmail.com-N6ybAFh----2>
@ 2022-07-20 15:51 ` Emanuel Berg
  3 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2022-07-20 15:51 UTC (permalink / raw)
  To: help-gnu-emacs

carlmarcos--- via Users list for the GNU Emacs text editor wrote:

> How can I test whether `show-paren-mode' is enabled, so
> I can switch it off ?

It's a variable as well ...

  C-h v show-paren-mode RET

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-20 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-14 20:13 Switching show-paren-mode off carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-14 21:25 ` [External] : " Drew Adams
2022-07-14 21:27 ` Thibaut Verron
     [not found] ` <CAFsi02RM-wL=XxXAUM_2_Omwp=dALfJU18RFd0idD2VtTYcKMw@mail.gmail.com-N6ybAFh----2>
2022-07-15 21:09   ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-15 21:28     ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-07-20 15:51 ` Emanuel Berg

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