On 7/27/07, Jose Luis Zabalza <[EMAIL PROTECTED]> wrote:
> Hola a todos.
>
> ¿Sabe alguien como mover el cursor al parentesis, llave, etc que
> empareja con el que está bajo o al lado del cursor.

Usa esta función (asignada a una tecla, claro):

(defun match-paren (arg)
  "Go to the matching parenthesis if on parenthesis, otherwise insert the
character the function is bound to."
  (interactive "p")
  (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
        ((looking-at "\\s\)") (forward-char 1) (backward-list 1))
        (t (self-insert-command (or arg 1)))))

             Juanma
_______________________________________________
Emacs-es mailing list
[email protected]
http://es.gnu.org/cgi-bin/mailman/listinfo/emacs-es

Responder a