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:
parent
7cb0fc34a8
commit
a533f76a3c
1 changed files with 2 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
;; Hide the mode line in the terminal
|
;; Hide the mode line in the terminal
|
||||||
(hide-mode-line-mode)
|
(hide-mode-line-mode)
|
||||||
(evil-emacs-state)
|
(evil-emacs-state)
|
||||||
|
(goto-address-mode)
|
||||||
(setq cursor-type 'bar))
|
(setq cursor-type 'bar))
|
||||||
|
|
||||||
(use-package vterm
|
(use-package vterm
|
||||||
|
|
@ -22,7 +23,7 @@
|
||||||
(defvar vterm-install t)
|
(defvar vterm-install t)
|
||||||
:config
|
:config
|
||||||
;; Set the custom term prompt the oh-my-zsh "pygmalion" theme
|
;; 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
|
;; Once vterm is dead, the vterm buffer is useless. Why keep it around? We can
|
||||||
;; spawn another if want one.
|
;; spawn another if want one.
|
||||||
(setq vterm-kill-buffer-on-exit t))
|
(setq vterm-kill-buffer-on-exit t))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue