Add pretty-symbols for Shell-mode (#3538)

* Add pretty-symbols for Shell-mode

* Sort sh/config.el
This commit is contained in:
M. Yas. Davoodeh 2020-07-14 01:48:06 +04:30 committed by GitHub
parent 0bb5024993
commit 60f8cc7f8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,19 @@
:config
(set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
(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)
(add-hook 'sh-mode-local-vars-hook #'lsp!))