Add pretty-symbols for Shell-mode (#3538)
* Add pretty-symbols for Shell-mode * Sort sh/config.el
This commit is contained in:
parent
0bb5024993
commit
60f8cc7f8a
1 changed files with 13 additions and 0 deletions
|
@ -16,6 +16,19 @@
|
||||||
:config
|
:config
|
||||||
(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-handler! 'sh-mode #'+sh/open-repl)
|
(set-repl-handler! 'sh-mode #'+sh/open-repl)
|
||||||
|
(set-pretty-symbols! 'sh-mode
|
||||||
|
;; Functional
|
||||||
|
:def "function"
|
||||||
|
;; Types
|
||||||
|
:true "true" :false "false"
|
||||||
|
;; Flow
|
||||||
|
:not "!"
|
||||||
|
:and "&&" :or "||"
|
||||||
|
:in "in"
|
||||||
|
:for "for"
|
||||||
|
:return "return"
|
||||||
|
;; Other
|
||||||
|
:dot "." :dot "source")
|
||||||
|
|
||||||
(when (featurep! +lsp)
|
(when (featurep! +lsp)
|
||||||
(add-hook 'sh-mode-local-vars-hook #'lsp!))
|
(add-hook 'sh-mode-local-vars-hook #'lsp!))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue