Indent on "RET" keypress in sh-mode

This commit is contained in:
2012-04-29 02:08:53 +01:00
parent bcab0409f2
commit 59dc636a0d

View File

@@ -6,6 +6,7 @@
(setq sh-basic-offset 2)
(setq sh-indentation 2)
(setq highlight-indentation-offset 2)
(highlight-indentation-mode))
(highlight-indentation-mode)
(define-key sh-mode-map (kbd "RET") 'reindent-then-newline-and-indent))
(add-hook 'sh-mode-hook 'customizations-for-sh-mode)