Re: X11 / keyboard emacs?

2005-01-27 Thread Tom Vilot
Matthias Buelow wrote:
have you tried to include the above bindings in your $HOME/.gtkrc-2.0 
file?  maybe then it will get read by all applications using the gtk 
2.x toolkit.

Thank you thank you thank you ...
This has been driving me bonkers! 
It's not a systemwide setting .. but that's okay. In my home directory 
will do .
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: X11 / keyboard emacs?

2005-01-27 Thread Matthias Buelow
Tom Vilot wrote:
have you tried to include the above bindings in your $HOME/.gtkrc-2.0 
file?  maybe then it will get read by all applications using the gtk 
2.x toolkit.
Thank you thank you thank you ...
This has been driving me bonkers! 
It's not a systemwide setting .. but that's okay. In my home directory 
will do .
actually I think it's a little more involved.. or not.
the bindings alone will probably not do, you also have to activate them.
for an ordinary theme, you simply include in your .gtkrc-2.0 the line
gtk-theme-name = Foobar
maybe gtk-theme-name = Emacs will already work.
if not, you somehow have to attach the defined bindings to the 
appropriate widgets; you probably have to google around a bit, or look 
it up how it's done in other theme files, since the gtk developers 
haven't deemed it necessary to document the gtkrc syntax (...)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: X11 / keyboard emacs?

2005-01-27 Thread Matthias Buelow
I wrote:
maybe gtk-theme-name = Emacs will already work.
That didn't work but one apparently can include files.
The following line appended to ~/.gtkrc-2.0 enabled emacs keybindings 
for me in the text entry widgets:

include /usr/X11R6/share/themes/Emacs/gtk-2.0-key/gtkrc
Don't know if that's the proper way to do that but it seems to work ok 
(no warnings when starting gtk2 apps).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: X11 / keyboard emacs?

2005-01-27 Thread Tom Vilot
Matthias Buelow wrote:
That didn't work but one apparently can include files. 
snip
I simply copied the gtkrc file to ~/gtkrc-2.0 and it worked fine for me 
Including is probably smarter, tho .
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


X11 / keyboard emacs?

2005-01-26 Thread Tom Vilot
Well, I'm stumped.
I can't figure out why, in FreeBSD (or at least the one I have running 
here) the keyboard mapping for editing all the text widgets (in X) is 
not using emacs keybindings. The only way I can get control-a and 
control-e, control-d etc, to work is if I run xfce4 and choose Emacs in 
the Keyboard settings.

a peek at that file:
/usr/X11R6/share/themes/Emacs/gtk-2.0-key/gtkrc
shows me things like:
#
# Bindings for GtkTextView and GtkEntry
#
binding gtk-emacs-text-entry
{
 bind ctrlb { move-cursor (logical-positions, -1, 0) }
 bind shiftctrlb { move-cursor (logical-positions, -1, 1) }
 bind ctrlf { move-cursor (logical-positions, 1, 0) }
 bind shiftctrlf { move-cursor (logical-positions, 1, 1) }
// snip //
What I don't understand is how to make that global. That is, applied to 
all Window Managers. If I run AfterStep or WindowMaker, these keyboard 
bindings do not apply and I can't figure out how to make them apply 
irrespective of the window manager currently running.

:c(
Help?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: X11 / keyboard emacs?

2005-01-26 Thread Matthias Buelow
Tom Vilot wrote:
What I don't understand is how to make that global. That is, applied to 
all Window Managers. If I run AfterStep or WindowMaker, these keyboard 
bindings do not apply and I can't figure out how to make them apply 
irrespective of the window manager currently running.
have you tried to include the above bindings in your $HOME/.gtkrc-2.0 
file?  maybe then it will get read by all applications using the gtk 2.x 
toolkit.

mkb.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]