change C-j to newline,indent,one indention back?
eugene kim
eugene1977 at hotmail.com
Sat Oct 19 08:36:08 EDT 2002
> (defun my-python-key-hook ()
> (define-key py-mode-map "\C-j" '(lambda () (interactive)
> (py-newline-and-indent)
> (py-electric-backspace 1)))
> (add-hook 'python-mode-hook 'my-python-key-hook)
>
>
> alex
thanks a lot..
for future reference
needed one more ')' at the end of defun.
what (interactive) does
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&th=4c85cc61b9f912bc&rnum=1
http://www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_45.html
More information about the Python-list
mailing list