diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-11-14 12:25:05 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-11-14 12:25:05 +0000 |
| commit | 27fc3fc1c28d2afd2eca99ee7fa74177d1099f1f (patch) | |
| tree | efc613d10c5338c1aee3cdb71b5fef8203a42fad /emacs | |
| parent | 98a96147d1272056a92f8d39f3a4d1e2dcd0cc4b (diff) | |
emacs: Consolidate sh-script configuration
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/init.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el index 1063149..bb4f3c4 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -39,8 +39,6 @@ (display-time-mode 1) (electric-indent-mode -1) (global-auto-revert-mode 1) -(add-to-list 'auto-mode-alist '("/PKGBUILD\\'" . shell-script-mode)) -(add-to-list 'magic-mode-alist '("#compdef .+" . sh-mode)) (defvar awhk-day-theme nil "Theme to use during the day.") @@ -153,7 +151,10 @@ (use-package org :init (setq org-startup-folded "showall") :commands org-mode) -(use-package sh-script :config (setq sh-basic-offset 2) :commands sh-mode) +(use-package sh-script + :config (setq sh-basic-offset 2) + :mode ("/PKGBUILD\\'" . sh-mode) + :magic ("#compdef .+" . sh-mode)) (use-package term :bind |
