all repos — nixfiles @ 55768649c8571f05eeac96f9ab1038ddc9721f4c

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

Emacs: enable completion in docker-compose files
Alan Pearce alan@alanpearce.eu
Thu, 26 Oct 2017 09:36:43 +0200
commit

55768649c8571f05eeac96f9ab1038ddc9721f4c

parent

8f99948c70d99289eac295e1378f1b764cf0eff1

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1556,6 +1556,11 @@ (use-package dockerfile-mode
   :mode (("Dockerfile\\'" . dockerfile-mode)))
 
+(use-package docker-compose-mode
+  :mode (("docker-compose.*.yml"))
+  :config (progn
+            (add-hook 'docker-compose-mode-hook #'company-mode-on)))
+
 (use-package nix-mode
   :mode (("\\.nix\\'" . nix-mode))
   :config (progn