Kung Fu Kung Fu

Fujian White Crane Kung Fu

Zope Zope

What I have and am doing with Zope

Photos Photos

Photoalbum, both old and new.

Receptsamlingen Receptsamlingen

In Swedish only. About my "Collection of Recipes" website.

Contact me Contact me

My contact details and how to contact me.

  Mobile version of this page Mobile version of this page


 

Jed Tags with ntags (for dummies)

jed, ctags, exuberant, wget, tags, ntags, dino, jedrc, ctags-exuberant

10th of February 2006

Working with Jed just got better. I've finally figured out how to use TAGS with Dino Leonardo's ntags extension

When programming in Jed I can now hold the cursor over a function in the code and by just hitting Alt+. it quickly jumps to the definition of that function. This is great if you for example need to quickly find out how a function works and what the parameter options are without having to a) dig out where it is defined (which file) and b) dig out where in the file it's defined.

Here's how I did it:

 $ wget http://www.paneura.com/~dino/files/ntags.tar.gz
 $ aunpack ntags.tar.gz
 $ sudo mv ntags /usr/share/jed/lib
 $ jed .jedrc

Then all I had to do was to add the following lines to my .jedrc file:

 % include the ntags library 
 set_jed_library_path(get_jed_library_path() + "," +
                     "/usr/share/jed/lib/ntags");
 % start autoload of ntags
 () = evalfile("autoload.sl");

Now, to generate the tags file you need to install Exuberant Ctags which unlike basic Emacs ctags supports 33 different programming languages. If you have APT just do this:

 $ sudo apt-get install exuberant-ctags
 $ cd mypythonplace
 $ ls *.py | wc -l
 19
 $ ctags-exuberant *.py

Now, let's hope I can get used to this luxury and that I start using it.


Comment

betabug - 12th February 2006  [«« Reply to this]
Nice, I use the tags interface of vim/vi so often now that I get confused at my cow-orkers workstations when it doesn't work. For python there is also a ptags.py around (I think somewhere in the python installation).
jayeola - 10th February 2007  [«« Reply to this]
That seems ok. I'd like to do that within an editor like Jed. I can define a macro but according to the docs one is supposed to be able to assign a macro or function to a key. Don't seem to work one my version. Jed 0.99.18U
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.