help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Quote Selection Do What I Mean (DWIM)


From: Pascal J. Bourguignon
Subject: Re: Quote Selection Do What I Mean (DWIM)
Date: Fri, 23 Oct 2009 18:38:10 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin)

Nordlöw <per.nordlow@gmail.com> writes:

> On Oct 23, 4:19 pm, p...@informatimago.com (Pascal J. Bourguignon)
> wrote:
>> Nordlöw <per.nord...@gmail.com> writes:
>> > If transient-mark-mode is activate it would be nice to have some
>> > clever major-mode-sensitive auto-insertion of single quotes and
>> > backquotes.
>>
>> > in emacs-lisp-mode we want the following mappings
>> > - ' => `symbol' in comment-syntax
>> > - ' => 'symbol in code-syntax (no change
>> > - " => "string" everywhere
>>
>> > Does emacs have a suitable before/after/replace hook related to self-
>> > insert-command that can be used to realize this behaviour?
>>
>> > Suitable function name could be quote-dwim().
>>
>> > Has anybody already done this? Reflections...
>>
>> In paredit, " behaves differently in code-syntax than in comment-syntax.
>> ' behave the same everywhere.
>>
>> You could easily propose a patch to paredit to add the wanted behavior for '.
>
> I can't find the email related to the author paredit.el. Where should
> I file the request for inclusion in paredit.el?

$ wget http://mumble.net/~campbell/riastradh.pgp
$ gpg ~/riastradh.pgp 
pub  1024D/BD2D02B0 2007-06-19 Taylor R Campbell <campbell@mumble.net>
uid                            Taylor R Campbell <riastradh@csail.mit.edu>
sub  4096g/C38F1908 2007-06-19


-- 
__Pascal Bourguignon__


reply via email to

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