Switching between Yahoo Messenger and Gaim is causing me no end of pain. Yahoo Messenger had Emacs key bindings by default, so I can just type and edit without thinking. However, all of the normal editing keystrokes have vastly different effects.

My attempts at Googling an add-on or patch have been rather fruitless. I can't believe I'm the only one who is bothered by this. If it matters, I'm using Gaim 0.75.

Posted by jzawodn at February 03, 2004 12:17 PM

Reader Comments
# said:

This has nothing to do with gaim, all you need to do is to set gtk's keybindings to emacs. Either use the Desktop Preferences/Keyboard shortcuts (from gnome) or create a .gtkrc that includes /usr/share/themes/Emacs/gtk-2.0-key/gtkrc. Be aware that this will set emacs keybindings globally for all gtk apps.

on February 3, 2004 12:29 PM
# Jeremy Zawodny said:

Thanks for the tip. However, it doesn't seem to work. I added that line to my ~/.gtkrc, verified that /usr/share/themes/Emacs/gtk-2.0-key/gtkrc exist (and looks correct), quit gaim, and restarted it. Ctrl-A doesn't take me to the beginnning of the line. It still does "select-all". :-(

on February 3, 2004 12:33 PM
# Muli Ben-Yehuda said:

Considering that this is a global GTK change, have you tried restarting X? (I would say restarting GNOME, but better safe than sorry...)

on February 3, 2004 12:49 PM
# Jeremy Zawodny said:

I'll be damned if I'm gonna restart X and loose all my app windows to try and fix a key binding.

Come on. GTK is a library. Gaim is an application that uses the library. Why should restarting X be any more effective than restarting Gaim? To GTK only re-read config files if it thinks that no other GTK-based apps are currently running?

That'd be weird.

As for the GNOME comment, I'm not using GNOME.

on February 3, 2004 12:56 PM
# Muli Ben-Yehuda said:

> Come on. GTK is a library. Gaim is an application
> that uses the library. Why should restarting X be
> any more effective than restarting Gaim? To GTK
> only re-read config files if it thinks that no
> other GTK-based apps are currently running?

I'm a programmer. You're a programmer. I don't need to tell you that when dealing with other people's code, you assume the worst unless shown code to the contrary. So yes, I would try restarting X which is bound to reinitialize whatever state GTK keeps.

> That'd be weird.

All code sucks.

> As for the GNOME comment, I'm not using GNOME.

OK. What do you use, then?

on February 3, 2004 01:20 PM
# Jeremy Zawodny said:

Heh, yeah, I should have put my pessimistic programm er hat on.

BTW, I use fvwm2. Though I'm tempted to play with the new KDE. I've used KDE off and on so there's a good chance that the latest release fixes the last few bugs I cared about.

on February 3, 2004 01:26 PM
# dan said:

Not exactly what you are looking for but I was sick of all of the cross platform clients I just naim (I'm not 100% sure if it supports Yahoo! or not) I can ssh in from just about anywhere and my logs are all in one place. Another nice feature is that I don't have IM windows popping up (which usually says something whom ever is walking by shouldn't see)

on February 3, 2004 02:00 PM
# Dor said:

Gaim uses GTK2 now, so you probably need to use the ~/.gtkrc-2.0 file, rather than the ~/.gtkrc file as referenced here: http://www.gtk.org/gtk-2.0.0-notes.html

on February 3, 2004 03:34 PM
# Jeremy Zawodny said:


Ah ha! That's it


on February 3, 2004 03:37 PM
# Xn said:

Thanks! That's bothered me for a long time.
Add this one too so you can fix ctrl+w to delete a word, not close the window:
gtk-can-change-accels = 1

on February 4, 2004 12:18 PM
# Chad said:

So did you have to restart anything (beyond gaim) to get the new key map loaded?

on February 4, 2004 02:03 PM
# Jeremy Zawodny said:

I simply restarted Gaim, as It Should Be. :-)

on February 4, 2004 06:18 PM
# A Halifax Mooseheads Hockey Fan said:

I was search for "ebay Halifax Mooseheads" and I was directed to your website but it has nothing about the Mooseheads even though it was interesting reading.
Take care and God Bless
Steve B., A Halifax Mooseheads Hockey Fan

on February 5, 2004 12:55 PM
# Not A Halifax Mooseheads Hockey Fan said:

Although I am not a Halifax Mooseheads hockey fan, on behalf of all humankind, I would like to apologize for the above post.

on February 5, 2004 04:43 PM
# Leif Hedstrom said:

Btw, the latest version of Firefox also uses these settings now. However, I ended up running gconf-editor, and change


setting it to Emacs. I use Gnome 2.8, this was the only way I could figure out how to do it. It doesn't seek to be an option any longer under the Keyboard Shortcuts config panel. (I use KDE on this machine, which maybe makes things more painful than normal).

on October 16, 2004 12:09 PM
# laurac said:

I think one of the biggest hassles with instant messaging is that itís tied to the computer. If Iím away from the computer, like watching tv, I may miss an important IM. I can leave the speakers on the PC really loud, but then Iím always jumping up and running back to the PC to read an incoming IM in case itís important. Most of the time itís not. I can subscribe to a service with my cell phoneóbut that costs money. So here is (I think) the perfect solution, and a good GAIM plug-in thatís not too much work.

I just installed a Pluto Home system (plutohome.com). Itís a free, open source smarthome and media server. You put Bluetooth dongles on all the pcís in your house, and then when you enter a room your Symbian Bluetooth phone turns into a remote control for everything in that room. It already tracks your movementóif you start listening to music in 1 room, your music will follow you as you move with your phone to another room. And it already sends messages to the phone based on events. For example, when the song changes, the cover art shown on my phone changes to show me whatís playing.

So that got me thinkingÖ Why not make a GAIM plugin for pluto so that whenever I get an IM, I see it on my Bluetooth phone? That way I can either type a reply on the phone, or go back to the computer if I want to use the keyboard, or ignore it if itís not important. And Iím not having to run back and forth to the computer to check IM. And itís free since it uses Bluetooth! Plus, I think itís such a real convenience it would be a great way to get people to switch to GAIM.

I talked to the programmers at Pluto and they said it would be really easy since their stuff is already written in small modules and plugins. However, since weíre all open source, we could also just take whatever pieces were useful and do something completely new using the same concept.

Many of the other GAIM projects listed are either specific for only some users (like Apple iChat), or would only be used by geeks (like the Perl interpreter). But not having to run back and forth to the computer is something everybody wants (imho). I donít see how to recommend a new idea for GAIM, so Iíll just try the forums and hope somebody else likes it too.

on June 22, 2005 10:47 AM
# Frederick Villaluna said:


I use VIM 6.4 as an editor...How do i change the interface of the gaim.. i already have the source codes. Where that source codes located in order to debug the interface? Is in here? (E:\cygwin\home\bling\gaim\src)... or something else....

I really appreciate each info...u



on February 23, 2006 03:49 PM
Disclaimer: The opinions expressed here are mine and mine alone. My current, past, or previous employers are not responsible for what I write here, the comments left by others, or the photos I may share. If you have questions, please contact me. Also, I am not a journalist or reporter. Don't "pitch" me.


Privacy: I do not share or publish the email addresses or IP addresses of anyone posting a comment here without consent. However, I do reserve the right to remove comments that are spammy, off-topic, or otherwise unsuitable based on my comment policy. In a few cases, I may leave spammy comments but remove any URLs they contain.