/docker-compose-mode

Major mode for editing docker-compose files

Primary LanguageEmacs LispApache License 2.0Apache-2.0

docker-compose-mode

MELPA MELPA Stable License

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.

Installation

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.

Usage

Add the following to your init.el:

(require 'docker-compose-mode)

Alternatively, if you prefer using use-package:

(use-package docker-compose-mode)

Customization

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.