|
49 | 49 | :group 'haskell
|
50 | 50 | :prefix "haskell-indentation-")
|
51 | 51 |
|
52 |
| -(defcustom haskell-indentation-show-indentations t |
| 52 | +(defcustom haskell-indentation-show-indentations nil |
53 | 53 | "If t the current line's indentation points will be showed as
|
54 | 54 | underscore overlays in new haskell-mode buffers. Use
|
55 |
| -`haskell-indentation-enable-show-indentations' and `haskell-indentation-disable-show-indentations' |
56 |
| -to switch the behavior for already existing buffers." |
| 55 | +`haskell-indentation-enable-show-indentations' and |
| 56 | +`haskell-indentation-disable-show-indentations' to switch the |
| 57 | +behavior for already existing buffers." |
57 | 58 | :type 'boolean
|
58 | 59 | :group 'haskell-indentation)
|
59 | 60 |
|
60 |
| -(defcustom haskell-indentation-show-indentations-after-eol t |
| 61 | +(defcustom haskell-indentation-show-indentations-after-eol nil |
61 | 62 | "If t, try to show indentation points after the end of line.
|
62 | 63 | This requires strange overlay hacks and can collide with other
|
63 | 64 | modes (e.g. fill-column-indicator)."
|
@@ -121,7 +122,14 @@ modes (e.g. fill-column-indicator)."
|
121 | 122 | "Haskell indentation mode that deals with the layout rule.
|
122 | 123 | It rebinds RET, DEL and BACKSPACE, so that indentations can be
|
123 | 124 | set and deleted as if they were real tabs. It supports
|
124 |
| -autofill-mode." |
| 125 | +autofill-mode. |
| 126 | +
|
| 127 | +It is possible to render indent stops for current line as |
| 128 | +overlays. Please read documentation for option |
| 129 | +`haskell-indentation-enable-show-indentations' and option |
| 130 | +`haskell-indentation-show-indentations-after-eol'. These options |
| 131 | +were disabled by default because in most cases occurs overlay |
| 132 | +clashing with other modes." |
125 | 133 | :lighter " Ind"
|
126 | 134 | :keymap haskell-indentation-mode-map
|
127 | 135 | (kill-local-variable 'indent-line-function)
|
@@ -656,7 +664,7 @@ the current buffer."
|
656 | 664 | (defun haskell-indentation-declaration-layout ()
|
657 | 665 | (haskell-indentation-layout #'haskell-indentation-declaration))
|
658 | 666 |
|
659 |
| -;; a layout list with case expressions |
| 667 | +;; a layout list with case expressions |
660 | 668 | (defun haskell-indentation-case-layout ()
|
661 | 669 | (haskell-indentation-layout #'haskell-indentation-case))
|
662 | 670 |
|
@@ -905,7 +913,7 @@ the current buffer."
|
905 | 913 | (throw 'parse-end nil))
|
906 | 914 |
|
907 | 915 | ;; after an 'open' expression such as 'if', exit
|
908 |
| - (unless (member (car parser) '("(" "[" "{" "do" "case")) |
| 916 | + (unless (member (car parser) '("(" "[" "{" "do" "case")) |
909 | 917 | (throw 'return nil)))))))))
|
910 | 918 |
|
911 | 919 | (defun haskell-indentation-test-indentations ()
|
@@ -961,7 +969,7 @@ the current buffer."
|
961 | 969 | ;; and current-indent after the separator
|
962 | 970 | ;; For example:
|
963 | 971 | ;; l = [ 1
|
964 |
| -;; , 2 |
| 972 | +;; , 2 |
965 | 973 | ;; , -- start now here
|
966 | 974 |
|
967 | 975 | (defun haskell-indentation-at-separator ()
|
|
0 commit comments