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

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

Toggle between read-only-mode


From: jai-bholeki
Subject: Toggle between read-only-mode
Date: Fri, 06 Nov 2020 10:53:44 +0000

Have made two functions to set paren-style-parenthesis.

Now I am trying to make a keybinding that toggles through the two settings.
Have checked around and have not found examples on how it can be done.

> (defun parenhl-paren ()
> "paren-style-parenthesis sets highlighting for parenthetical marks"
> (interactive)
> (setq show-paren-style 'parenthesis)
> )
>
> (defun parenhl-expr ()
> "paren-style-parenthesis sets highlighting for parenthetical marks"
> (interactive)
> (setq show-paren-style 'expression)
> )

Sent with [ProtonMail](https://protonmail.com) Secure Email.

reply via email to

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