Docker interface cleanup

This commit is contained in:
Howard Abrams 2023-05-01 15:42:57 -07:00
parent 882cf0dba7
commit faa08cddca

View file

@ -891,12 +891,15 @@ First, use =npm= to install the program:
** Docker
Edit =Dockerfiles= with the [[https://github.com/spotify/dockerfile-mode][dockerfile-mode]] project:
#+BEGIN_SRC emacs-lisp
(use-package dockerfile-mode :defer
(use-package dockerfile-mode
:mode (rx string-start "Dockerfile")
:config
(ha-leader :keymaps 'dockerfile-mode-map
"a d b" '("build" . dockerfile-build-buffer)
"a d B" '("insert build tag" . ha-dockerfile-build-insert-header))
(make-local-variable 'docker-image-name)
(defvaralias 'docker-image-name 'dockerfile-image-name nil)
(ha-local-leader :keymaps 'dockerfile-mode-map
"b" '("build" . dockerfile-build-buffer)
"t" '("insert build tag" . ha-dockerfile-build-insert-header))
(defun ha-dockerfile-build-insert-header (image-name)
"Prepends the default Dockerfile image name at the top of a file."
@ -915,7 +918,7 @@ Edit =Dockerfiles= with the [[https://github.com/spotify/dockerfile-mode][docker
(use-package docker
:commands docker
:config
(ha-leader "a d d" 'docker))
(ha-leader "a d" 'docker))
#+END_SRC
Unclear whether I want to Tramp into a running container: