all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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 ` 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 --
2009-12-18 11:56 textmate like auto pairings andrea
     [not found] <mailman.13163.1261137407.2239.help-gnu-emacs@gnu.org>
2009-12-18 12:47 ` Elena
2009-12-19 10:33 ` ramblex

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.