From 55768649c8571f05eeac96f9ab1038ddc9721f4c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 26 Oct 2017 09:36:43 +0200 Subject: Emacs: enable completion in docker-compose files --- emacs/.emacs.d/main.el | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit 1.4.1