mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
@ -16,6 +16,10 @@
|
|||||||
:config
|
:config
|
||||||
(set-docsets! 'sh-mode "Bash")
|
(set-docsets! 'sh-mode "Bash")
|
||||||
(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-formatter! 'shfmt
|
||||||
|
'("shfmt" "-ci"
|
||||||
|
("-i" "%d" (unless indent-tabs-mode tab-width))
|
||||||
|
("-ln" "%s" (pcase sh-shell (`bash "bash") (`mksh "mksh") (_ "posix")))))
|
||||||
(set-repl-handler! 'sh-mode #'+sh/open-repl)
|
(set-repl-handler! 'sh-mode #'+sh/open-repl)
|
||||||
(set-lookup-handlers! 'sh-mode :documentation #'+sh-lookup-documentation-handler)
|
(set-lookup-handlers! 'sh-mode :documentation #'+sh-lookup-documentation-handler)
|
||||||
(set-ligatures! 'sh-mode
|
(set-ligatures! 'sh-mode
|
||||||
|
Reference in New Issue
Block a user