Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A utility to integrate hasktags easier into emacs

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

hasktags emacs

This library tries to intergrate hasktags into emacs in a more automated way 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 git://github.com/Kerestey/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

Something went wrong with that request. Please try again.