emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] New package: cycle-quotes.el


From: Simen Heggestøyl
Subject: Re: [ELPA] New package: cycle-quotes.el
Date: Sat, 04 Jun 2016 18:24:41 +0200

On Sat, Jun 4, 2016 at 1:51 PM, Kaushal Modi <address@hidden> wrote:
Sounds cool! Have you tested to see how it works in emacs-lisp-mode?
Also, if a region is active, and if that selection is not surrounded by quotes, would cycle-quotes wrap that region with quotes? And cycle back to no quotes while that same region was active?


It currently doesn't care about the region. `cycle-quotes' will only
change the quoting style of the surrounding quotes when point is inside
a string (as defined by the syntax of the current major mode).

So for Emacs Lisp that has only one string quoting character (as far as
I know), `cycle-quotes' will do nothing. But for programming modes that
defines more than one string quote character, such as for Python or
JavaScript, `cycle-quotes' will cycle between the different styles.

-- Simen






reply via email to

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