unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* textmate like auto pairings
@ 2009-12-18 11:56 andrea
  0 siblings, 0 replies; 3+ messages in thread
From: andrea @ 2009-12-18 11:56 UTC (permalink / raw)
  To: help-gnu-emacs


I'd like to configure smartly my auto pairings more cleverly

I use this http://gist.github.com/259460
found I don't know where but I don't know how to configure things per
mode.
Looks its too much in the textmate.el code, I'd just like to set up a
list of assocs with a list of, something like:

--8<---------------cut here---------------start------------->8---
(defvar my-pairs '(
        (python-mode . '(
                         \( . \)
                         \[ . \]
--8<---------------cut here---------------end--------------->8---
...
Something like that...





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: textmate like auto pairings
       [not found] <mailman.13163.1261137407.2239.help-gnu-emacs@gnu.org>
@ 2009-12-18 12:47 ` Elena
  2009-12-19 10:33 ` ramblex
  1 sibling, 0 replies; 3+ messages in thread
From: Elena @ 2009-12-18 12:47 UTC (permalink / raw)
  To: help-gnu-emacs

On 18 Dic, 11:56, andrea <andrea.crott...@gmail.com> wrote:
> I'd like to configure smartly my auto pairings more cleverly
>
> I use thishttp://gist.github.com/259460
> found I don't know where but I don't know how to configure things per
> mode.
> Looks its too much in the textmate.el code, I'd just like to set up a
> list of assocs with a list of, something like:
>
> --8<---------------cut here---------------start------------->8---
> (defvar my-pairs '(
>         (python-mode . '(
>                          \( . \)
>                          \[ . \]
> --8<---------------cut here---------------end--------------->8---
> ...
> Something like that...

Don't waste your time. Paredit makes what you could be looking for and
more:

http://www.emacswiki.org/emacs/ParEdit

Cheers


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: textmate like auto pairings
       [not found] <mailman.13163.1261137407.2239.help-gnu-emacs@gnu.org>
  2009-12-18 12:47 ` textmate like auto pairings Elena
@ 2009-12-19 10:33 ` ramblex
  1 sibling, 0 replies; 3+ messages in thread
From: ramblex @ 2009-12-19 10:33 UTC (permalink / raw)
  To: help-gnu-emacs

On Dec 18, 11:56 am, andrea <andrea.crott...@gmail.com> wrote:
> I'd like to configure smartly my auto pairings more cleverly
>
> I use thishttp://gist.github.com/259460
> found I don't know where but I don't know how to configure things per
> mode.
> Looks its too much in the textmate.el code, I'd just like to set up a
> list of assocs with a list of, something like:
>
> --8<---------------cut here---------------start------------->8---
> (defvar my-pairs '(
>         (python-mode . '(
>                          \( . \)
>                          \[ . \]
> --8<---------------cut here---------------end--------------->8---
> ...
> Something like that...

http://code.google.com/p/autopair/ gives the closest to textmate's
functionality IMO. It's also pretty configurable so you can set it up
how you'd like.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-19 10:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.13163.1261137407.2239.help-gnu-emacs@gnu.org>
2009-12-18 12:47 ` textmate like auto pairings Elena
2009-12-19 10:33 ` ramblex
2009-12-18 11:56 andrea

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).