Emacs personal configuration
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

27 lines
752B

  1. ;;; package --- Haskell mode
  2. ;;; Commentary:
  3. ;;; Code:
  4. (require-package 'haskell-mode)
  5. ;; https://emacsclub.github.io/html/haskell.html#sec-3
  6. (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
  7. (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
  8. ;; https://gitlab.haskell.org/ghc/ghc/wikis/emacs
  9. ;; Highlight text beyond 80th column
  10. (require 'whitespace)
  11. (defun haskell-custom-line-length ()
  12. (setq whitespace-style '(face lines-tail))
  13. (setq whitespace-line-column 80)
  14. (global-whitespace-mode t))
  15. (add-hook 'haskell-mode-hook 'haskell-custom-line-length)
  16. ;; Allows you to jump to the first error in compiled or interpreted code.
  17. (global-set-key (kbd "M-g M-f") 'first-error)
  18. (provide 'init-haskell)
  19. ;;; init-haskell.el ends here