diff --git a/emacs/.emacs.d/config/init-terraform.el b/emacs/.emacs.d/config/init-terraform.el index 1fb77ca..2e489f8 100644 --- a/emacs/.emacs.d/config/init-terraform.el +++ b/emacs/.emacs.d/config/init-terraform.el @@ -63,4 +63,11 @@ (advice-add 'terraform--get-resource-provider-namespace :around #'terraform-provider-ns-advice)) +(defun terraform-jump-to-plan () + "Jump to the top of the plan output in a buffer showing a terraform plan." + (interactive) + (when (eq major-mode 'vterm-mode) + (vterm-copy-mode)) + (search-backward "Terraform will perform the following actions:")) + (provide 'init-terraform)