Skip to content

Commit 895739c

Browse files
committed
Force temp buffer to use spaces for indentation.
This prevents the insertion of unwanted tabs in the cabal file when auto-inserting dependencies, regardless of the user value for `indent-tabs-mode` in the default mode (default is fundamental mode). Solves issues #379 and #474.
1 parent da42d0a commit 895739c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

haskell-cabal.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ resultung buffer-content"
464464
(save-excursion
465465
(prog1
466466
(with-temp-buffer
467+
(setq indent-tabs-mode nil)
467468
(indent-to ,start-col)
468469
(insert ,section-data)
469470
(goto-char (point-min))

0 commit comments

Comments
 (0)