mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
30 lines
665 B
EmacsLisp
30 lines
665 B
EmacsLisp
;;; siren-sh.el --- jimeh's Emacs Siren: sh-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for sh-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-highlight-indentation)
|
|
|
|
(use-package sh-script
|
|
:ensure nil ;; loaded from emacs built-ins
|
|
:hook
|
|
(sh-mode . siren-sh-mode-setup)
|
|
|
|
:init
|
|
(defun siren-sh-mode-setup ()
|
|
(setq tab-width 2
|
|
sh-basic-offset 2
|
|
sh-indentation 2
|
|
whitespace-action '(auto-cleanup))
|
|
|
|
(subword-mode +1)
|
|
(highlight-indentation-set-offset 2)
|
|
(highlight-indentation-current-column-mode)
|
|
(define-key sh-mode-map (kbd "RET") 'newline-and-indent)))
|
|
|
|
(provide 'siren-sh)
|
|
;;; siren-sh.el ends here
|