sh: add company-shell
This commit is contained in:
parent
c1c6f332d4
commit
3cc18ac674
2 changed files with 10 additions and 0 deletions
3
Cask
3
Cask
|
@ -192,6 +192,9 @@
|
||||||
(depends-on "racer")
|
(depends-on "racer")
|
||||||
(depends-on "flycheck-rust")
|
(depends-on "flycheck-rust")
|
||||||
|
|
||||||
|
;; Shell -- modules/module-sh.el
|
||||||
|
(depends-on "company-shell" :git "https://github.com/Alexander-Miller/company-shell")
|
||||||
|
|
||||||
;; Text modes -- modules/module-text.el
|
;; Text modes -- modules/module-text.el
|
||||||
(depends-on "markdown-mode")
|
(depends-on "markdown-mode")
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
;;; module-sh.el --- description
|
;;; module-sh.el --- description
|
||||||
|
|
||||||
|
(use-package company-shell
|
||||||
|
:defer t
|
||||||
|
:config
|
||||||
|
(setq company-shell-delete-duplicates t))
|
||||||
|
|
||||||
(associate! sh-mode :match "/\\.dotfiles/aliases$")
|
(associate! sh-mode :match "/\\.dotfiles/aliases$")
|
||||||
(associate! sh-mode :match "/\\.?z\\(sh/.*\\|profile\\|login\\|logout\\|shrc\\|shenv\\)$")
|
(associate! sh-mode :match "/\\.?z\\(sh/.*\\|profile\\|login\\|logout\\|shrc\\|shenv\\)$")
|
||||||
(associate! sh-mode :match "/\\.?bash\\(/.*\\|rc\\|_profile\\)$")
|
(associate! sh-mode :match "/\\.?bash\\(/.*\\|rc\\|_profile\\)$")
|
||||||
|
@ -14,6 +19,8 @@
|
||||||
(add-hook! sh-mode 'flycheck-mode)
|
(add-hook! sh-mode 'flycheck-mode)
|
||||||
(add-hook! sh-mode 'electric-indent-local-mode)
|
(add-hook! sh-mode 'electric-indent-local-mode)
|
||||||
|
|
||||||
|
(require 'company-shell)
|
||||||
|
|
||||||
;; Fontify variables in strings
|
;; Fontify variables in strings
|
||||||
(add-hook 'sh-mode-hook 'narf|sh-extra-font-lock-activate))
|
(add-hook 'sh-mode-hook 'narf|sh-extra-font-lock-activate))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue