mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
sh: add company-shell
This commit is contained in:
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))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user