refactor(emacs): update terminal prompt and enable goto-address-mode

Update the terminal prompt so you can step forward and backwards though terminal
props using vims `[[` and `]]` that is included in evil-mode.

Enable goto-address-mode in the terminal so I am click on and open urls in the
browser from the terminal. This is most used for opening create merge requests
links when pushing commits to a branch.
This commit is contained in:
Ade Attwood 2022-04-25 19:50:13 +01:00
parent 7cb0fc34a8
commit a533f76a3c

View file

@ -10,6 +10,7 @@
;; Hide the mode line in the terminal
(hide-mode-line-mode)
(evil-emacs-state)
(goto-address-mode)
(setq cursor-type 'bar))
(use-package vterm
@ -22,7 +23,7 @@
(defvar vterm-install t)
:config
;; Set the custom term prompt the oh-my-zsh "pygmalion" theme
(setq term-prompt-regexp ".*")
(setq term-prompt-regexp " ")
;; Once vterm is dead, the vterm buffer is useless. Why keep it around? We can
;; spawn another if want one.
(setq vterm-kill-buffer-on-exit t))