Added powershell flag to sh
This commit is contained in:
parent
29b12de83e
commit
f9884cc068
3 changed files with 12 additions and 2 deletions
|
@ -23,10 +23,12 @@ This module adds support for shell scripting languages.
|
||||||
+ =+lsp= Enables LSP support for sh-mode. This requires the =:tools lsp= module
|
+ =+lsp= Enables LSP support for sh-mode. This requires the =:tools lsp= module
|
||||||
to be enabled and [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]] to be installed on your system.
|
to be enabled and [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]] to be installed on your system.
|
||||||
+ =+fish= Add syntax highlighting for fish script files.
|
+ =+fish= Add syntax highlighting for fish script files.
|
||||||
|
+ =+powershell= Add syntax highlighting for Powershell script files .ps1 and .psm1
|
||||||
|
|
||||||
** Plugins
|
** Plugins
|
||||||
+ [[https://github.com/Alexander-Miller/company-shell][company-shell]]* (=:completion company=)
|
+ [[https://github.com/Alexander-Miller/company-shell][company-shell]]* (=:completion company=)
|
||||||
+ [[https://github.com/wwwjfy/emacs-fish][fish-mode]]* (=+fish=)
|
+ [[https://github.com/wwwjfy/emacs-fish][fish-mode]]* (=+fish=)
|
||||||
|
+ [[https://github.com/jschaf/powershell.el][powershell-mode]]* (=+powershell=)
|
||||||
|
|
||||||
** Hacks
|
** Hacks
|
||||||
+ Interpolated variables are fontified.
|
+ Interpolated variables are fontified.
|
||||||
|
|
|
@ -65,7 +65,6 @@
|
||||||
;; autoclose backticks
|
;; autoclose backticks
|
||||||
(sp-local-pair 'sh-mode "`" "`" :unless '(sp-point-before-word-p sp-point-before-same-p)))
|
(sp-local-pair 'sh-mode "`" "`" :unless '(sp-point-before-word-p sp-point-before-same-p)))
|
||||||
|
|
||||||
|
|
||||||
(use-package! company-shell
|
(use-package! company-shell
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
:unless (featurep! +lsp)
|
:unless (featurep! +lsp)
|
||||||
|
@ -74,8 +73,14 @@
|
||||||
(set-company-backend! 'sh-mode '(company-shell company-files))
|
(set-company-backend! 'sh-mode '(company-shell company-files))
|
||||||
(setq company-shell-delete-duplicates t))
|
(setq company-shell-delete-duplicates t))
|
||||||
|
|
||||||
|
|
||||||
(use-package! fish-mode
|
(use-package! fish-mode
|
||||||
:when (featurep! +fish)
|
:when (featurep! +fish)
|
||||||
:defer t
|
:defer t
|
||||||
:config (set-formatter! 'fish-mode #'fish_indent))
|
:config (set-formatter! 'fish-mode #'fish_indent))
|
||||||
|
|
||||||
|
(use-package! powershell
|
||||||
|
:when (featurep! +powershell)
|
||||||
|
:mode (("\\.ps1\\'" . powershell-mode)
|
||||||
|
("\\.psm1\\'" . powershell-mode))
|
||||||
|
:config (when (featurep! +lsp)
|
||||||
|
(add-hook 'powershell-mode-hook #'lsp!)))
|
||||||
|
|
|
@ -6,3 +6,6 @@
|
||||||
|
|
||||||
(when (featurep! +fish)
|
(when (featurep! +fish)
|
||||||
(package! fish-mode :pin "db257db81058b0b12f788c324c264cc59b9a5bf4"))
|
(package! fish-mode :pin "db257db81058b0b12f788c324c264cc59b9a5bf4"))
|
||||||
|
|
||||||
|
(when (featurep! +powershell)
|
||||||
|
(package! powershell :pin "87826777bd3ebd53740be99b4546bfc11ccc625d"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue