mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
31 lines
738 B
EmacsLisp
31 lines
738 B
EmacsLisp
;;; siren-sh.el --- jimeh's Emacs Siren: sh-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for sh-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-programming)
|
|
|
|
(defun siren-sh-mode-defaults ()
|
|
(siren-prog-mode-defaults)
|
|
|
|
(subword-mode +1)
|
|
(setq tab-width 2)
|
|
(setq sh-basic-offset 2)
|
|
(setq sh-indentation 2)
|
|
(setq highlight-indentation-offset 2)
|
|
(highlight-indentation-mode)
|
|
(highlight-indentation-current-column-mode)
|
|
(setq whitespace-action (quote (auto-cleanup)))
|
|
(define-key sh-mode-map (kbd "RET") 'newline-and-indent))
|
|
|
|
(setq siren-sh-mode-hook 'siren-sh-mode-defaults)
|
|
|
|
(add-hook 'sh-mode-hook (lambda ()
|
|
(run-hooks 'siren-sh-mode-hook)))
|
|
|
|
(provide 'siren-sh)
|
|
;;; siren-sh.el ends here
|