Words from the inside


Google Code from Emacs

Posted in Software, Igalia by jasuarez on the October 30th, 2008

Usually, when writting code (in Emacs, of course ;-) ), I forget a lot of times how to use a function, or what are their parameters. So frequently I use devhelp-word-at-point, which opens DevHelp and shows the required information.

But even in some cases DevHelp is not enough, as what I actually need is to see examples of use for that function. In these cases, as Victor suggested, Google Code is a good place where to get it. But it’s a pain in the neck to open a browser, go to Google Code and search for the function.

So I’ve written a simple function for emacs, codesearch-word-at-point, that performs like devhelp-word-at-point, but opening a browser with the results of searching in Google Code. Mapping it to a key (I’m currently using F11 for devhelp and F12 for code search) makes my life easier.

Scrolling with TrackPoint

Posted in Igalia, Tunning by jasuarez on the October 15th, 2008

If you’re using a TrackPoint as your favourite mouse, probably you configured it to allow scrolling with the help of middle button. If not, I suggest to take a look at ThinkWiki.

But those steps explain how to configure vertical scrolling, but what about horizontal scrolling? If you want to have scrolling in both directions, add the following section in your xorg.conf file.

Section “InputDevice”
Identifier  “Trackpoint”
Driver      “mouse”
Option      “CorePointer”
Option      “Device”              “/dev/input/mice”
Option      “Protocol”            “ImPS/2″
Option      “Buttons”             “7″
Option      “YAxisMapping”        “4 5″
Option      “XAxisMapping”        “6 7″
Option      “EmulateWheel”        “true”
Option      “EmulateWheelButton”  “2″
EndSection