diff --git a/init.example.el b/init.example.el index 5141f6371..469ba9f5d 100644 --- a/init.example.el +++ b/init.example.el @@ -115,7 +115,7 @@ ;ruby ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} ;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;scala ; java, but good - sh ; she sells (ba|z)sh shells on the C xor + (sh +fish) ; she sells (ba|z)sh shells on the C xor ;solidity ; do you need a blockchain? No. ;swift ; who asked for emoji variables? ;web ; the tubes diff --git a/modules/lang/sh/config.el b/modules/lang/sh/config.el index 2c1d7e748..e739f2f00 100644 --- a/modules/lang/sh/config.el +++ b/modules/lang/sh/config.el @@ -62,3 +62,9 @@ (set-company-backend! 'sh-mode '(company-shell company-files)) (setq company-shell-delete-duplicates t)) +(def-package! fish-mode + :when (featurep! +fish) + :defer t + :config + (add-hook! fish-mode + (add-hook 'before-save-hook #'fish_indent-before-save))) diff --git a/modules/lang/sh/packages.el b/modules/lang/sh/packages.el index 11f456485..d3e3ad9e1 100644 --- a/modules/lang/sh/packages.el +++ b/modules/lang/sh/packages.el @@ -6,3 +6,6 @@ (when (featurep! :completion company) (package! company-shell)) + +(when (featurep! +fish) + (package! fish-mode))