You are not logged in.
In GNOME, I have the option of setting the keybinding scheme for the whole system into "Emacs mode." I find this to be very very convenient! I'm typing this text without a desktop environment, and I keep instinctively trying to navigate with C-f, M-f, C-b, M-f, C-a, C-e, etc, only to have my hopes dashed! The ability to do this with GNOME is pretty much the only thing I like about the DE.
Basically, I want to know if there's a way I can enable alternate keybinding schemes on my system when I'm using awesome, openbox, or anything else I ever feel like trying out. I know it's possible, since GNOME does it, but is there a way any of you know of to accomplish this which is independent of the environment you're using?
It would make my day if you did!
Last edited by Kebertx (2013-06-06 23:45:47)
Offline
Launch gnome-settings-daemon? Of course, that also drags in other gnome settings, like fonts and wallpapers.
Last edited by Unia (2013-05-06 15:02:01)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
For all gtk applications add "include "/usr/share/themes/Emacs/gtk-2.0-key/gtkrc" to ~/.gtkrc as far I know (except firefox, but there's a addon called firemacs that fixes this).
Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux
Offline
I tried changing that setting in Gnome tweak tool. But it seems M+W to copy not working, so as C-x h to select all. Any suggestions?
Offline
Thanks, Thaodan. Sorry, forgot to come back and mark this as solved, but that does the trick!
xgdgsc: Reading the Emacs keybinding theme, it seems that your problem should be easy enough to solve. Just add:
bind "<alt>w" { "copy-clipboard" () }
to the gtkrc file. I don't know about C-x h, since GTK applications won't interpret C-x as sending a command, but you can just find some other keybinding that makes since for select all, and add it in the same way.
EDIT: I found this: https://developer.gnome.org/gtk3/3.4/Gt … select-all
Which says the default keybinding to send a select-all signal is either Ctrl-a or Ctrl-/. The Emacs keys overwrite Ctrl-a, but Ctrl-/ still works just fine. And you can also edit the Emacs gtkrc and put
bind "<alt>h" { "select-all" () }
in the "gtk-emacs-text-view" section.
Last edited by Kebertx (2013-06-07 01:23:54)
Offline