I think you mean electric-pair-mode
The ESS implementation may be doing more.


From: Alex Branham <alex.bran...@gmail.com>
Sent: December 12, 2019 3:35 PM
To: Bond, Stephen <stephen.b...@cibc.com>
Cc: ESS-help <ess-help@r-project.org>
Subject: Re: [ESS] how to get matching brace

[EXTERNAL]
________________________________
Turn on electric-parenthesis-mode.

It's a customizable option for all of Emacs.

On Thu, Dec 12, 2019, 3:33 PM Bond, Stephen via ESS-help 
<ess-help@r-project.org<mailto:ess-help@r-project.org>> wrote:
Hello,

What is the best way to get ESS mode to produce matching parens or quotes when 
I enter just the opening symbol?
I want to see {
}

When I press a single {.
My elisp is beginner level and I can do that by overwriting the electric brace 
function in ess, but it seems to me what I want is already available as there 
is a skeleton function etc and the behavior is controlled by a variable that is 
not available to set with M-x.
If I do my simple solution, I get the closing brace, but I am afraid I break 
quite a bit of code, which is there for a purpose.
Thanks everybody

Stephen B


        [[alternative HTML version deleted]]

______________________________________________
ESS-help@r-project.org<mailto:ESS-help@r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
ATTENTION: This email originated outside your organization. Exercise caution 
before clicking links, opening attachments, or responding with personal 
information.
________________________________

        [[alternative HTML version deleted]]

______________________________________________
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Reply via email to