all repos — nixfiles @ 948b76763a5274ecfefb7627391cc0dd5788c1f7

System and user configuration, managed by nix and home-manager

emacs: enable completion of commands and envvars in shell scripts
Alan Pearce alan@alanpearce.eu
Tue, 11 Apr 2023 11:08:44 +0200
commit

948b76763a5274ecfefb7627391cc0dd5788c1f7

parent

b60cd054519369b3ddf2f742f6bab4b77ba53848

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -487,6 +487,12 @@ :config (progn             (when (display-graphic-p)
               (company-posframe-mode +1))))
 
+(use-package company-shell
+  :after company
+  :config (progn
+            (setq company-shell-clean-manpage t)
+            (add-to-list 'company-backends '(company-shell company-shell-env))))
+
 (use-package all-the-icons
   :defer t
   :config (setq all-the-icons-color-icons nil))
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -86,6 +86,7 @@ avy         capf-autosuggest
         company
         company-posframe
+        company-shell
         company-tabnine
         consult
         consult-eglot