22 lines
495 B
EmacsLisp
22 lines
495 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)
|