From: Rudolf Schlatte <rudi@constantly.at>
To: help-gnu-emacs@gnu.org
Subject: Re: Using show-paren-style function in elisp code
Date: Mon, 20 Jun 2022 11:25:33 +0200 [thread overview]
Message-ID: <m14k0f4rg2.fsf@eduroam-193-157-168-54.wlan.uio.no> (raw)
In-Reply-To: N5-79NL--3-2@tutanota.com
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).
next prev parent reply other threads:[~2022-06-20 9:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-20 8:00 Using show-paren-style function in elisp code carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-20 9:25 ` Rudolf Schlatte [this message]
2022-06-20 17:51 ` Bruno Barbier
[not found] ` <N51E0wj--3-2@missing-mail-id>
2022-06-21 4:58 ` carlmarcos--- via Users list for the GNU Emacs text editor
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=m14k0f4rg2.fsf@eduroam-193-157-168-54.wlan.uio.no \
--to=rudi@constantly.at \
--cc=help-gnu-emacs@gnu.org \
/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).