ghc-mod/elisp/ghc-indent.el
2012-08-10 09:21:09 +09:00

22 lines
491 B
EmacsLisp

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; ghc-indent.el
;;;
;; Author: Kazu Yamamoto <Kazu@Mew.org>
;; Created: Feb 28, 2012
;;; Code:
(defvar ghc-indent-offset 4)
(defun ghc-make-indent-shallower (beg end)
(interactive "r")
(indent-rigidly (region-beginning) (region-end) (- ghc-indent-offset)))
(defun ghc-make-indent-deeper (beg end)
(interactive "r")
(indent-rigidly (region-beginning) (region-end) ghc-indent-offset))
(provide 'ghc-indent)