From: "Óscar Fuentes" <ofv@wanadoo.es>
To: emacs-devel@gnu.org
Subject: Re: Proposal: make insert-pair-alist buffer local
Date: Thu, 23 Dec 2021 14:11:15 +0100 [thread overview]
Message-ID: <878rwbv53g.fsf@telefonica.net> (raw)
In-Reply-To: 871r23ijcy.fsf@yahoo.com
Po Lu <luangruo@yahoo.com> writes:
> Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
>
>> Hi
>>
>> This is a "don't shoot the pianist" (cf. cite below) sort of idea I
>> have had while trying to rationalize my .emacs.d:
>>
>> If insert-pair-alist was buffer-local, we could have different
>> auto-pairs for different modes: e.g. //,**, etc. in org-mode
>
> You can just set it as a buffer-local variable, like so:
>
> (setq-local insert-pair-alist ...
>
> Also look into `make-local-variable' and friends.
I think he is not asking about how to solve his particular problem, but
suggesting a possible improvement to Emacs.
next prev parent reply other threads:[~2021-12-23 13:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-23 12:11 Proposal: make insert-pair-alist buffer local Pedro Andres Aranda Gutierrez
2021-12-23 12:41 ` Po Lu
2021-12-23 13:11 ` Óscar Fuentes [this message]
2021-12-23 13:28 ` Po Lu
2021-12-23 17:12 ` Juri Linkov
2021-12-23 18:15 ` Eli Zaretskii
2021-12-23 19:33 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rwbv53g.fsf@telefonica.net \
--to=ofv@wanadoo.es \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.