I am trying to setup emacs for haskell. I downloaded haskell-mode with el-get and some parts are working (like indentation, starting ghci, etc.) but I can’t get the tags-generation working.
Hasktags is installed, and
(load "~/.emacs.d/el-get/haskell-mode/haskell-site-file") is added to my init-file.
Does hasktags need to be in a certain directory? (I added the directory to PATH, no success.)
The haskell-process-generate-tags function is not available with M-x. When I add (load "~/.emacs.d/el-get/haskell-mode/haskell-process.el") manually to the init-file the function is available but no TAGS file is generated.
(PS: I am using emacs 24.1 with linux)
hasktagsshould be inPATH, but are you sure thatPATHin Emacs is the same asPATHin shell? I just tried, andhaskell-process-generate-tagsworked for me without problem. Try to setupPATHfrom Emacs with:You can also bind
C-x C-stohaskell-mode-save-bufferas described inexamples/init.el– in this case, you can sethaskell-tags-on-savevariable tot, andhasktagswill be called on every save of you haskell files.