ghc-indent.el 491 B

12345678910111213141516171819202122
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;;
  3. ;;; ghc-indent.el
  4. ;;;
  5. ;; Author: Kazu Yamamoto <Kazu@Mew.org>
  6. ;; Created: Feb 28, 2012
  7. ;;; Code:
  8. (defvar ghc-indent-offset 4)
  9. (defun ghc-make-indent-shallower (beg end)
  10. (interactive "r")
  11. (indent-rigidly (region-beginning) (region-end) (- ghc-indent-offset)))
  12. (defun ghc-make-indent-deeper (beg end)
  13. (interactive "r")
  14. (indent-rigidly (region-beginning) (region-end) ghc-indent-offset))
  15. (provide 'ghc-indent)