[logo] jEdit Emacs Emulation Package

Links

This package contains a set of key bindings and some BeanShell macros for the jEdit editor. The key bindings and macros, together, attempt to provide a better emulation of the popular GNU Emacs editor than is available out of the box with jEdit. Some of the key bindings in the shortcuts file merely bind to existing jEdit macros; however, others bind to macros provided by this package. Among the emulated functions and key bindings are the following:

Key binding Bound to Command Type Description
Ctrl-n Emacs_Next_Line Macro bundled with jEdit Move to the next line in the file. Similar to the GNU Emacs next-line function.
Ctrl-p Emacs_Previous_Line Macro bundled with jEdit Move to the previous line in the file. Similar to the GNU Emacs previous-line function.
Ctrl-k Emacs_Kill_Line Macro supplied by this package Kill from the cursor to the end of the current line in the file. Emulates the GNU Emacs kill-line function.
Alt-e Emacs_Forward_Sentence Macro supplied by this package Move just past the end of the current sentence in the file. Emulates the GNU Emacs forward-sentence function.
Alt-b Emacs_Backward_Sentence Macro supplied by this package Move to the beginning of the current sentence in the file. Emulates the GNU Emacs backward-sentence function.
Alt-k Emacs_Kill_Sentence Macro supplied by this package Kill from the cursor to the end of the current sentence in the file. Emulates the GNU Emacs kill-sentence function.
Ctrl-w Emacs_Kill_Region Macro supplied by this package Kill all text between the caret and the mark, copying it to the kill ring. Emulates the GNU Emacs kill-region function. However, this version is slightly different than its GNU Emacs counterpart: If there's any selected text (i.e., a region selected by the mouse), it kills and saves that region. Otherwise, it selects the text between the caret and mark, and kills and saves that.
Alt-w Emacs_Kill_Ring_Save Macro supplied by this package Copy all text between the caret and the mark to the kill ring. Emulates the GNU Emacs kill-ring-save function. However, this version is slightly different than its GNU Emacs counterpart: If there's any selected text (i.e., a region selected by the mouse), it saves that region. Otherwise, it selects the text between the caret and mark, and saves that.
Ctrl-t Emacs_Transpose_Chars Macro supplied by this package Transpose the character at the caret with the previous character, and move the caret forward one character. Emulates the GNU Emacs transpose-chars function, but without Emacs "prefix" support.
Ctrl-x Ctrl-t Emacs_Transpose_Lines Macro supplied by this package Transpose the line at the caret with the previous line, and move the caret forward one line. Emulates the GNU Emacs transpose-lines function, but without Emacs "prefix" support.
Alt-c Emacs_Capitalize_Word Macro supplied by this package Capitalize the character under the cursor, and make the remaining characters in the word lower case. Emulates the GNU Emacs capitalize-word function.
Alt-l Emacs_Downcase_Word Macro supplied by this package Convert all characters from the cursor to the end of the current word to lower case. Emulates the GNU Emacs downcase-word function.
Alt-u Emacs_Upcase_Word Macro supplied by this package Convert all characters from the cursor to the end of the current word to upper case. Emulates the GNU Emacs upper-word function.
Ctrl-Space Emacs_Set_Mark Macro supplied by this package Set the Emacs mark at the current cursor position. Emulates the GNU Emacs set-mark-command function.
Ctrl-x Ctrl-x Emacs_Exchange_Point_and_Mark Macro supplied by this package Exchange the caret (the current cursor position, which Emacs calls "point") with the last mark set by "Ctrl-Space". Emulates the GNU Emacs exchange-point-and-mark function.
Ctrl-o Emacs_Open_Line Macro supplied by this package Insert a newline after the caret, without moving the caret. Emulates the GNU Emacs open-line function.
Alt-Space Emacs_Fixup_Whitespace Macro supplied by this package Fix up white space between objects around the caret. Leave one space or none, according to context. Similar to the GNU Emacs fixup-whitespace function.

Those are just some of the key bindings. Consult the shortcuts.properties file in the downloaded package for the complete list of bindings.

Warning: Some of these macros rely on jEdit features that aren't present in versions of jEdit prior to 4.3.

Author

Brian M. Clapper, <bmc @ clapper . org>

Copyright

© 2005-2006 Brian M. Clapper

Disclaimer

This emulation software is not part of, or endorsed by, the GNU Emacs project or the Free Software Foundation, nor is it a part of, or endorsed by, the jEdit project.

License

This software is released under a BSD-style license.

Copyright © 2004-2006 Brian M. Clapper. All rights reserved.

$Id: index.shtml 6219 2006-07-06 03:11:54Z bmc $