![]() (On OS X, you will need to open show the contents of the application package by choosing "Show package contents" from the contextual menu of the application in the Finder. You can also follow the instructions below.įor both Windows and OS X, you can manually edit the platformHTMLBindings.xml file and add the handlers listed below to each section for which you desire the new bindings. Conkeror can be selectively disabled so that "normal" Firefox windows can be opened simultaneously with Conkeror windows.įor Windows you can download XKeymacs, an OpenSource keybinder that works with most Windows apps. It is a much more thorough change to the UI than simple key bindings and is not for the faint of heart. Go to next line ("down") (only works in multiline text areas)ĭelete to end of line (if cursor is at the end of the line, deletes the following newline)ĭelete entire line (different from readline, in which Ctrl+U deletes to the beginning of the line)Īdditional Readline keys not supported by Firefox.Ĭonkeror is an extension which makes Firefox look and act like Emacs. Go to previous line ("up") (only works in multiline text areas) When these keybindings are enabled, they override the standard keybindings in Gnome and Firefox (when a text entry field has focus). The shortcuts are often called Emacs keybindings, but they're actually more similar to keybindings in Readline. If you decide that you don't like it, you can use -unset. All current and future firefox processes will now use Emacs key bindings. Gconftool-2 -set /desktop/gnome/interface/gtk_key_theme Emacs -type string Just cut and paste this into the command line, There is a graphical registry editor, gconf-editor, but you don't have to use it. If the above method doesn't work, it is probably because you are running Gnome >=2.8 which has a Microsoft Windows® style "registry" called GConf. For some versions (1.5.0.1) of firefox this filename is ~/.gtkrc Gnome method: gconftool-2 ![]() To ~/.gtkrc-2.0 (create the file if it doesn't exist) and restart Firefox. To enable Emacs keybindings, add the line There are two different methods depending upon whether or not you run Gnome. 4.3 Entries to add to platformHTMLBindings.xmlįirefox uses the GTK setting to determine whether Emacs-like/Readline-like keybindings are active in text fields.And if reaching for the Ctrl and Meta keys is painful for you, there’s always evil mode. Own set of bindings developed along ergonomic lines. Of course, in this as in other things, Emacs has you covered. But others haven’t been as fortunate so the ergonomics of the bindings is definitely not a trivial complaint. ![]() ![]() Even though I came from Vi(m), I’ve been using the standard shortcuts for over 15 years without ill effect. Sometimes this was after years of using the conventional keybindings. Many Emacs users have developed cases of RSI so bad that they’ve moved to Evil mode for relief. Emacs has so many shortcuts that even with the mnemonic choice they’re hard to remember so it’s not clear it was a bad tradeoff. Secondly, the common shortcuts were chosen to be mnemonic rather than ergonomic. Modern keyboards, of course, have those two keys reversed making Emacs shortcuts less ergonomic. First, and probably most important, when Emacs was designed, the implementors were using various Lisp keyboards that mostly had the Ctrl key to the left of the space key and the Meta key to the left of Ctrl. His post considers the question of why-given how painful they can be-Emacs shortcuts are the way they are. Lee, as most of you probably know, is obsessed with keyboard ergonomics and it is fair, I think, to consider him an expert on the matter. It’s Xah Lee’s post on Why Emacs Keys are Painful. Here’s a blast from the past that I recently came across again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |