On 07/05/2017 11:41 AM, Sherman Grunewagen wrote:
Just moved from F21 to F25 and many things are not working as
expected (which is to be expected!)
One is the way to get most applications (like Firefox, and KDE itself, to honour basic
emacs
key bindings for cursor motions. In F21 and prior I had a little file in my home dir
called
".gtkrc-2.0" which contained this magic line:
gtk-key-theme-name = "Emacs"
This no longer works.
Would one of you kind souls share the magic incantation for F25?
Thanks!
-Sherman
To all of you (Stan, Oleg, Samuel) who replied with helpful comments, thanks!
-- Stan asked: Are you sure this was the actual reason it was working?
Answer: I'm certain. I rebooted F21, commented out the above
line from ~/.gtkrc-2.0, and lost the functionality w/in KDE
(things like text input boxes, e.g. Alt-F2.) as well as Firefox.
Uncommenting and rebooting X brought it back.
I read all the links. The one form Oleg,
http://shallowsky.com/blog/linux/gtk3-emacs-key-theme.html
gives a partial solution in that now Firefox behaves as desired. The author
also describes, to a tee, us who have the emacs keystrokes ingrained in our
fingers. :-)
Samuel, I couldn't apply your suggestion about 'gnome-tweek-tool'
as I don't have it or gnome on my KDE system. Not sure how it would
help in my case.
Finally I found this bug report,
https://github.com/NixOS/nixpkgs/issues/25838
which I hoped would solve the rest of the issue.
But since it's for a NixOS system, it didn't. So I'm still
w/o the emacs bindings w/in KDE (sans Firefox). Remapping
keys through global keyboard shortcuts doesn't seem the right solution.
When I hit, say, Ctrl-k outside an input box,I want the normal KDE or application
behaviour to apply. But inside an input box, I want the Emacs behaviour (kill rest of
line).
--Sherman