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

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

RE: defining my own newline function


From: Drew Adams
Subject: RE: defining my own newline function
Date: Mon, 5 Nov 2007 21:43:23 -0800

> (define-key pypoutline-mode-map "\C-j" 'pypoutline-newline-and-indent)
> (define-key pypoutline-mode-map [<return>] 'pypoutline-newline-and-indent)
> (define-key py-mode-map "\C-m" 'pypoutline-newline-and-indent)

> but none of them seem to be working.  If I type C-h k and
> then hit return (in a buffer running my mode), I get:

> RET (translated from <return>) runs the command newline

> What am I doing wrong?  Is there something I need to add
> to the syntax table of my mode or somewhere else?

Are you sure that you are in your mode and that your mode has your mode map
as its local map? What does `M-: (current-local-mode)' tell you?

[BTW, it's generally better to use plain text, not HTML, for email to a
mailing list.]





reply via email to

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