Skip to content

An automated TAGS generator for emacs for easier traversal of haskell code

Notifications You must be signed in to change notification settings

ptek/hasktags-emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hasktags emacs

This library intergrates hasktags into emacs, making it easier to navigate through your code in emacs.

usage

To be able to navigate through your haskell code in emacs faster, you may want to tag your code and use etags library supplied with emacs to do that.

One of such tools is hasktags and you can find some information on it on Haskell Wiki The program itself can be found in Hackage

To use the tags automatically, I've created a script for emacs, which would regenerate the TAGS when you save your file.

So, please install hasktags first:

cabal install hasktags

clone the project directory into your preferred location for emacs tools

git clone https://github.com/ptek/hasktags-emacs.git

and add these two lines into your .emacs file

(add-to-list 'load-path "<path-to-hasktags-emacs-directory>")
(load "hasktags")

To help emacs locate your project correctly, you will have to create TAGS file in your project root directory. Just echo -n > TAGS and you are good to go.

You can now navigate to the function definitions using M-. and also use the other functionalities described in Emacs Wiki - EmacsTags Article

About

An automated TAGS generator for emacs for easier traversal of haskell code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published