summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-10-26 09:36:43 +0200
committerAlan Pearce2017-10-26 09:36:43 +0200
commit55768649c8571f05eeac96f9ab1038ddc9721f4c (patch)
tree315fdb1a30f0ea84efdc84b355b6a8198a08842c /emacs
parent8f99948c70d99289eac295e1378f1b764cf0eff1 (diff)
downloadnixfiles-55768649c8571f05eeac96f9ab1038ddc9721f4c.tar.lz
nixfiles-55768649c8571f05eeac96f9ab1038ddc9721f4c.tar.zst
nixfiles-55768649c8571f05eeac96f9ab1038ddc9721f4c.zip
Emacs: enable completion in docker-compose files
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 16b54059..abec6f4d 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1556,6 +1556,11 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
 (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