From 25664a5fcc6b47a5ae37280424f1277f0724b571 Mon Sep 17 00:00:00 2001 From: Emmet Date: Thu, 10 Aug 2023 20:22:05 -0500 Subject: [PATCH] Vterm keybind and tramp optimizations --- user/app/doom-emacs/config.el | 13 ++++--------- user/app/doom-emacs/doom.org | 16 +++++----------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index bbc2d1d..bef0273 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -50,6 +50,9 @@ (bind-key* "C-h" #'evil-window-left) (bind-key* "C-l" #'evil-window-right) (bind-key* "C-q" #'evil-window-delete) +(bind-key* "M-q" #'kill-current-buffer) +(bind-key* "M-z" #'+vterm/toggle) +(bind-key* (kbd "M-") #'+vterm/here) ;; Mouse buffer management (bind-key* "" #'previous-buffer) @@ -1056,12 +1059,4 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)." :hook (gdscript-mode . lsp-deferred) :ensure t) -(after! tramp - (setq tramp-inline-compress-start-size 1000) - (setq tramp-copy-size-limit 10000) - (setq vc-handled-backends '(Git)) - (setq tramp-verbose 1) - (setq tramp-default-method "scp") - (setq tramp-use-ssh-controlmaster-options nil) - (setq projectile--mode-line "Projectile") - (setq tramp-verbose 1)) + diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index 87ac828..d8b2fab 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -23,7 +23,7 @@ - [[#direnv][Direnv]] - [[#projectile][Projectile]] - [[#lsp][LSP]] - - [[#tramp][Tramp]] + - [[#terminal][Terminal]] - [[#my-initel][My init.el]] - [[#my-packagesel][My packages.el]] - [[#nix-integration][Nix Integration]] @@ -111,6 +111,9 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu (bind-key* "C-h" #'evil-window-left) (bind-key* "C-l" #'evil-window-right) (bind-key* "C-q" #'evil-window-delete) +(bind-key* "M-q" #'kill-current-buffer) +(bind-key* "M-z" #'+vterm/toggle) +(bind-key* (kbd "M-") #'+vterm/here) ;; Mouse buffer management (bind-key* "" #'previous-buffer) @@ -1228,17 +1231,8 @@ I don't have this active right now since I'm exploring tab-bar mode instead! :hook (gdscript-mode . lsp-deferred) :ensure t) #+END_SRC -** Tramp +** Terminal #+BEGIN_SRC emacs-lisp :tangle config.el -(after! tramp - (setq tramp-inline-compress-start-size 1000) - (setq tramp-copy-size-limit 10000) - (setq vc-handled-backends '(Git)) - (setq tramp-verbose 1) - (setq tramp-default-method "scp") - (setq tramp-use-ssh-controlmaster-options nil) - (setq projectile--mode-line "Projectile") - (setq tramp-verbose 1)) #+END_SRC * My init.el This section is the [[./init.el][init.el]] section, which controls which Doom modules are loaded.