dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 589eb6b4e40b84015554cb76e3f03cc9ea55d47c
parent fc7e48872cd07b73353f4dec141591e65765f490
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu, 15 Jul 2021 20:12:33 +0200

emacs: key to easily open vterm

Diffstat:
Memacs/config.org | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -201,6 +201,17 @@ And I'm not gonna be a heretic and open Vim inside of Emacs. (vterm-mode . (lambda () (unless server-process (server-start))))) #+end_src +I'll bind a key to start a vterm or switch to the running vterm: + +#+begin_src emacs-lisp + (defun switch-to-vterm () "Switch to a running vterm, or start one and switch to it." + (interactive) + (if (get-buffer vterm-buffer-name) + (switch-to-buffer vterm-buffer-name) + (vterm))) + (global-set-key (kbd "C-c t") 'switch-to-vterm) +#+end_src + ** sr-speedbar Make speed bar show in the current frame.