lang/sh: refactor
This commit is contained in:
parent
5bd7e24f61
commit
700f463ee0
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,6 @@
|
||||||
:init
|
:init
|
||||||
(add-hook! sh-mode '(flycheck-mode highlight-numbers-mode +sh|extra-fontify))
|
(add-hook! sh-mode '(flycheck-mode highlight-numbers-mode +sh|extra-fontify))
|
||||||
:config
|
:config
|
||||||
(set! :company-backend 'sh-mode '(company-shell))
|
|
||||||
(set! :electric 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
|
(set! :electric 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
|
||||||
(set! :repl 'sh-mode '+sh/repl)
|
(set! :repl 'sh-mode '+sh/repl)
|
||||||
(setq sh-indent-after-continuation 'always)
|
(setq sh-indent-after-continuation 'always)
|
||||||
|
@ -23,5 +22,7 @@
|
||||||
(def-package! company-shell
|
(def-package! company-shell
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
:after sh-script
|
:after sh-script
|
||||||
:config (setq company-shell-delete-duplicates t))
|
:config
|
||||||
|
(set! :company-backend 'sh-mode '(company-shell))
|
||||||
|
(setq company-shell-delete-duplicates t))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue