From a533f76a3c3fadbd1d7c45cc06bb813792aaa9d6 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Mon, 25 Apr 2022 19:50:13 +0100 Subject: [PATCH] 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. --- site-modules/core/files/emacs/src/term.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-modules/core/files/emacs/src/term.el b/site-modules/core/files/emacs/src/term.el index bb46a90..7df75e1 100644 --- a/site-modules/core/files/emacs/src/term.el +++ b/site-modules/core/files/emacs/src/term.el @@ -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))