Jed Tags with ntags (for dummies)

11 February 2006   2 comments   Linux

Powered by Fusion×

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
$ 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() + "," +
% start autoload of ntags
() = evalfile("");

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
$ ctags-exuberant *.py

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


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 around (I think somewhere in the python installation).
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

Your email will never ever be published

Related posts

Geeking with Eterm and Tkinter 09 February 2006
How to fold t-shirts, with a "machine" 13 February 2006
Related by keywords:
Local jed settings 19 April 2013
Wing IDE versus Jed 11 December 2008
Gmail shortcuts 26 April 2005
Mvbackupfiles - a script to "delete" back autosaved backup files 24 November 2005
Heil Jed and Dave Kuhlman 09 May 2004
Make your settings in .Xdefaults come true 16 November 2004
Jed looking like Emacs 28 September 2005
Keybinding ALT-F in Jed 27 January 2004
Geeking with tags file for Jed 29 May 2006
Geeking with Eterm and Tkinter 09 February 2006
Dabbrev in Jed 26 January 2004
Grep in Jed 27 January 2004