Next: , Previous: , Up: Top   [Index]


11 Editing Cabal files

haskell-cabal-mode is a major mode for editing Cabal package description files and is automatically associated with files having a .cabal extension.

For quickly locating and jumping to the nearest .cabal file from a Haskell source buffer, you can use M-x haskell-cabal-visit-file; with a prefix argument (i.e. C-u) find-file-other-window is used to visit the .cabal file. If you wish, you can bind haskell-cabal-visit-file to a convenient key sequence, e.g.

(eval-after-load "haskell-mode"
  '(define-key haskell-mode-map (kbd "C-c v c") 'haskell-cabal-visit-file))

TODO/WRITEME