Minor Dockerfile changes

This commit is contained in:
Howard Abrams 2023-05-02 21:56:43 -07:00
parent 96db7ff63f
commit f7bfbf7d0c

View file

@ -990,6 +990,7 @@ Edit =Dockerfiles= with the [[https://github.com/spotify/dockerfile-mode][docker
(ha-local-leader :keymaps 'dockerfile-mode-map (ha-local-leader :keymaps 'dockerfile-mode-map
"b" '("build" . dockerfile-build-buffer) "b" '("build" . dockerfile-build-buffer)
"B" '("build no cache" . dockerfile-build-no-cache-buffer)
"t" '("insert build tag" . ha-dockerfile-build-insert-header)) "t" '("insert build tag" . ha-dockerfile-build-insert-header))
(defun ha-dockerfile-build-insert-header (image-name) (defun ha-dockerfile-build-insert-header (image-name)
@ -998,10 +999,7 @@ Edit =Dockerfiles= with the [[https://github.com/spotify/dockerfile-mode][docker
(save-excursion (save-excursion
(goto-char (point-min)) (goto-char (point-min))
(insert (format "## -*- dockerfile-image-name: \"%s\" -*-" image-name)) (insert (format "## -*- dockerfile-image-name: \"%s\" -*-" image-name))
(newline))) (newline))))
:hook
(dockerfile-mode . display-line-numbers-mode))
#+END_SRC #+END_SRC
/Control/ Docker from Emacs using the [[https://github.com/Silex/docker.el][docker.el]] project: /Control/ Docker from Emacs using the [[https://github.com/Silex/docker.el][docker.el]] project: