emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposal: make insert-pair-alist buffer local


From: Po Lu
Subject: Re: Proposal: make insert-pair-alist buffer local
Date: Thu, 23 Dec 2021 20:41:33 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

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.


reply via email to

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