Skip to content

Commit ef96a53

Browse files
committed
manual: update interactive block indentation
Recommend transient-mark-mode and TAB, instead of `haskell-move-nested-{left,right}`. Follows gracjan's changes to the wiki in https://github.com/haskell/haskell-mode/wiki/Indentation/_compare/a251fed86858fd9a4f322c385d70fd25b8293ebf As far as I can tell the move-nested functions don't indent enough nested code to preserve valid layout. They also don't have default key bindings.
1 parent be6560a commit ef96a53

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

doc/haskell-mode.texi

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -425,26 +425,8 @@ Either of these will turn off @code{haskell-indentation-mode}.
425425

426426
@section Interactive Block Indentation
427427

428-
By inserting the key bindings for @kbd{C-,} and @kbd{C-.} (these
429-
bindings are convenient on keyboard layouts where @key{,} and @key{.}
430-
are adjacent keys) as shown below you can interactively de/indent either
431-
the following nested block or, if a region is active while in Transient
432-
Mark Mode (@pxref{Disabled Transient Mark,,,emacs}), de/indent the
433-
active region.
434-
435-
By using a numeric prefix argument (@pxref{Prefix Command
436-
Arguments,,,elisp}) you can modify the shift-amount; for instance,
437-
@kbd{C-u C-,} increases indentation by 4 characters at once.
438-
439-
@findex haskell-move-nested-left
440-
@findex haskell-move-nested-right
441-
442-
@lisp
443-
(eval-after-load "haskell-mode"
444-
'(progn
445-
(define-key haskell-mode-map (kbd "C-,") 'haskell-move-nested-left)
446-
(define-key haskell-mode-map (kbd "C-.") 'haskell-move-nested-right)))
447-
@end lisp
428+
@code{haskell-indentation} can move whole blocks to the left or to the
429+
right. Just mark a block and then use @key{TAB} or @key{S-TAB}.
448430

449431
@section Rectangle Commands
450432

0 commit comments

Comments
 (0)