GithubHelp home page GithubHelp logo

isabella232 / dockerfile-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spotify/dockerfile-mode

0.0 0.0 0.0 65 KB

An emacs mode for handling Dockerfiles

License: Apache License 2.0

Emacs Lisp 100.00%

dockerfile-mode's Introduction

dockerfile-mode

Known to work with Emacs 24 and later

If you just want to use it, you can get it via MELPA.

A Dockerfile mode for emacs

(add-to-list 'load-path "/your/path/to/dockerfile-mode/")
(require 'dockerfile-mode)
(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))

Adds syntax highlighting as well as the ability to build the image directly using C-c C-b from the buffer (C-c M-b to bypass docker build cache).

You can specify the image name in the file itself by adding a line like this at the top of your Dockerfile.

## -*- dockerfile-image-name: "your-image-name-here" -*-

If you don't, you'll be prompted for an image name each time you build. You may want to add the following to your emacs config:

(put 'dockerfile-image-name 'safe-local-variable #'stringp)

You can change the binary to use with

(setq dockerfile-mode-command "docker")

dockerfile-mode's People

Contributors

davidshen84 avatar djui avatar drewcsillag avatar fredeeb avatar fuco1 avatar giuseppe avatar j0ni avatar jaccarmac avatar jimeh avatar ju2wheels avatar juergenhoetzel avatar lassik avatar madosuki avatar marketneutral avatar masven avatar mikelaspina avatar nabeo avatar ncaq avatar pataquets avatar purcell avatar rcj avatar riscy avatar rohansingh avatar shaneikennedy avatar silex avatar terlar avatar thomasf avatar vieux avatar wilfred avatar wynro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.