Function: haskell-cabal-mode
haskell-cabal-mode is an interactive and natively compiled function
defined in haskell-cabal.el.
Signature
(haskell-cabal-mode)
Documentation
Major mode for Cabal package description files.
In addition to any hooks its parent mode text-mode might have run,
this mode runs the hook haskell-cabal-mode-hook, as the final or
penultimate step during initialization.
C-<down> haskell-cabal-next-subsection
C-<up> haskell-cabal-previous-subsection
C-M-n haskell-cabal-next-section
C-M-p haskell-cabal-previous-section
C-c C-f haskell-cabal-find-or-create-source-file
C-c C-s haskell-cabal-subsection-arrange-lines
M-g b haskell-cabal-goto-benchmark-section
M-g e haskell-cabal-goto-executable-section
M-g l haskell-cabal-goto-library-section
M-g o haskell-cabal-goto-common-section
M-g t haskell-cabal-goto-test-suite-section
M-n haskell-cabal-next-subsection
M-p haskell-cabal-previous-subsection
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-cabal.el
;;;###autoload
(define-derived-mode haskell-cabal-mode text-mode "Haskell-Cabal"
"Major mode for Cabal package description files."
(setq-local font-lock-defaults
'(haskell-cabal-font-lock-keywords t t nil nil))
(add-to-list 'haskell-cabal-buffers (current-buffer))
(add-hook 'change-major-mode-hook 'haskell-cabal-unregister-buffer nil 'local)
(add-hook 'kill-buffer-hook 'haskell-cabal-unregister-buffer nil 'local)
(setq-local comment-start "--")
(setq-local comment-start-skip "--[ \t]*")
(setq-local comment-end "")
(setq-local comment-end-skip "[ \t]*\\(\\s>\\|\n\\)")
(setq-local indent-line-function 'haskell-cabal-indent-line)
(setq indent-tabs-mode nil)
)