Major mode for editing docker-compose files, providing context-aware completion
of docker-compose keys through completion-at-point-functions
.
The completions can be used with the completion system shipped with vanilla Emacs, and 3rd-party frontends like company-mode, autocomplete, and ido-at-point.
It's available on MELPA:
M-x package-install docker-compose-mode
Or you can just save the .el
files in your Emacs' load path.
Add the following to your init.el
:
(require 'docker-compose-mode)
Alternatively, if you prefer using use-package
:
(use-package docker-compose-mode)
By default, the keyword completion function detects the docker-compose version of the current buffer and suggests the appropriate keywords.
You can change the candidates offered by the backend by customizing docker-compose-keywords
.