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

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

Re: Using show-paren-style function in elisp code


From: Rudolf Schlatte
Subject: Re: Using show-paren-style function in elisp code
Date: Mon, 20 Jun 2022 11:25:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)

carlmarcos--- via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> Have written the following function to set `show-paren-style`.  Would it be
> possible to modify
> the code in a way that also allows a user to use the style as an argument so
> that the function
> can be used in elisp code.  

Wouldn't it be enough to set `show-paren-style' as a file-local
variable?  (See the Emacs manual for how to set those.)  If you want to
call a function every time the user opens a file, add it to the
`emacs-lisp-mode-hook' variable (use the `add-hook' function).




reply via email to

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