[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal: make insert-pair-alist buffer local
From: |
Óscar Fuentes |
Subject: |
Re: Proposal: make insert-pair-alist buffer local |
Date: |
Thu, 23 Dec 2021 14:11:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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.