Docker interface cleanup
This commit is contained in:
parent
882cf0dba7
commit
faa08cddca
1 changed files with 8 additions and 5 deletions
|
@ -891,12 +891,15 @@ First, use =npm= to install the program:
|
||||||
** Docker
|
** Docker
|
||||||
Edit =Dockerfiles= with the [[https://github.com/spotify/dockerfile-mode][dockerfile-mode]] project:
|
Edit =Dockerfiles= with the [[https://github.com/spotify/dockerfile-mode][dockerfile-mode]] project:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package dockerfile-mode :defer
|
(use-package dockerfile-mode
|
||||||
:mode (rx string-start "Dockerfile")
|
:mode (rx string-start "Dockerfile")
|
||||||
:config
|
:config
|
||||||
(ha-leader :keymaps 'dockerfile-mode-map
|
(make-local-variable 'docker-image-name)
|
||||||
"a d b" '("build" . dockerfile-build-buffer)
|
(defvaralias 'docker-image-name 'dockerfile-image-name nil)
|
||||||
"a d B" '("insert build tag" . ha-dockerfile-build-insert-header))
|
|
||||||
|
(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)
|
(defun ha-dockerfile-build-insert-header (image-name)
|
||||||
"Prepends the default Dockerfile image name at the top of a file."
|
"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
|
(use-package docker
|
||||||
:commands docker
|
:commands docker
|
||||||
:config
|
:config
|
||||||
(ha-leader "a d d" 'docker))
|
(ha-leader "a d" 'docker))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Unclear whether I want to Tramp into a running container:
|
Unclear whether I want to Tramp into a running container:
|
||||||
|
|
Loading…
Reference in a new issue