File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 82
82
; ; Partly stolen from `indent-relative' in indent.el:
83
83
(defun haskell-simple-indent ()
84
84
" Space out to under next visible indent point.
85
- Indent points are positions of non-whitespace following whitespace in
86
- lines preceeding point. A position is visible if it is to the left of
87
- the first non-whitespace of every nonblank line between the position and
88
- the current line. If there is no visible indent point beyond the current
89
- column, `tab-to-tab-stop' is done instead."
85
+
86
+ Indent points are positions of non-whitespace following
87
+ whitespace in lines preceeding point. Example:
88
+
89
+ func arg cx = when (isTrue) $ do
90
+ print 42
91
+ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
92
+
93
+ A position is visible if it is to the left of the first
94
+ non-whitespace (indentation) of every nonblank line between the
95
+ position and the current line. If there is no visible indent
96
+ point beyond the current column, position given by
97
+ `indent-next-tab-stop' is used instead."
90
98
(interactive )
91
99
(let* ((start-column (current-column ))
92
100
(invisible-from nil ) ; `nil' means infinity here
You can’t perform that action at this time.
0 commit comments