File: ghc-indent.el

package info (click to toggle)
ghc-mod 5.6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,216 kB
  • ctags: 240
  • sloc: haskell: 8,323; lisp: 1,557; makefile: 40; sh: 34
file content (21 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; 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)