You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 line
716 B

  1. ;;-*-mode: emacs-lisp; coding: utf-8;-*-
  2. (autoload 'sh--mode "sh-mode" "mode for shell stuff" t)
  3. (add-to-list 'auto-mode-alist '("\\.sh$\\'" . sh-mode))
  4. (add-to-list 'auto-mode-alist '("\\.[zk]sh$\\'" . sh-mode))
  5. (add-to-list 'auto-mode-alist '("\\.bash$\\'" . sh-mode))
  6. (add-to-list 'auto-mode-alist '("\\[.].*shrc$\\'" . sh-mode))
  7. (add-to-list 'auto-mode-alist '("sourceme$\\'" . sh-mode))
  8. (add-hook 'sh-mode-hook
  9. '(lambda ()
  10. (load "mode-defaults")
  11. (smartparens-mode)
  12. (flycheck-mode)
  13. (setq-default indent-tabs-mode nil)
  14. (setq sh-basic-offset 2 sh-indentation 4
  15. sh-indent-for-case-label 0 sh-indent-for-case-alt '+)))