Tramp for emacs and shell setup for remote servers

This commit is contained in:
Emmet 2023-08-10 07:56:06 -05:00
parent 3ce67cc188
commit 1600681cfc
3 changed files with 24 additions and 0 deletions

View file

@ -1055,3 +1055,13 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
(use-package gdscript-mode (use-package gdscript-mode
:hook (gdscript-mode . lsp-deferred) :hook (gdscript-mode . lsp-deferred)
:ensure t) :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))

View file

@ -23,6 +23,7 @@
- [[#direnv][Direnv]] - [[#direnv][Direnv]]
- [[#projectile][Projectile]] - [[#projectile][Projectile]]
- [[#lsp][LSP]] - [[#lsp][LSP]]
- [[#tramp][Tramp]]
- [[#my-initel][My init.el]] - [[#my-initel][My init.el]]
- [[#my-packagesel][My packages.el]] - [[#my-packagesel][My packages.el]]
- [[#nix-integration][Nix Integration]] - [[#nix-integration][Nix Integration]]
@ -1227,6 +1228,18 @@ I don't have this active right now since I'm exploring tab-bar mode instead!
:hook (gdscript-mode . lsp-deferred) :hook (gdscript-mode . lsp-deferred)
:ensure t) :ensure t)
#+END_SRC #+END_SRC
** Tramp
#+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 * My init.el
This section is the [[./init.el][init.el]] section, which controls which Doom modules are loaded. This section is the [[./init.el][init.el]] section, which controls which Doom modules are loaded.

View file

@ -21,6 +21,7 @@ in
PROMPT=" %U%F{magenta}%n%f%u@%U%F{blue}%m%f%u:%F{yellow}%~%f PROMPT=" %U%F{magenta}%n%f%u@%U%F{blue}%m%f%u:%F{yellow}%~%f
%F{green}%f " %F{green}%f "
RPROMPT="%F{red}%f%F{yellow}%f%F{green}%f%F{cyan}%f%F{blue}%f%F{magenta}%f%F{white}%f" RPROMPT="%F{red}%f%F{yellow}%f%F{green}%f%F{cyan}%f%F{blue}%f%F{magenta}%f%F{white}%f"
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
''; '';
}; };