emacs: install and configure ssh-deploy
Alan Pearce alan@alanpearce.eu
Sat, 22 Jun 2024 14:40:24 +0200
3 files changed, 19 insertions(+), 2 deletions(-)
M .dir-locals.el → .dir-locals.el
@@ -1,4 +1,13 @@ ;;; Directory Local Variables ;;; For more information see (info "(emacs) Directory Variables") -((nil . ((compile-command . "./bin/home-manager switch")))) +((nil . ((compile-command . "./bin/home-manager switch"))) + ("system/nanopi.nix" . + ((nil . ((ssh-deploy-root-local . "/home/alan/projects/alanpearce.eu/nixfiles/") + (ssh-deploy-root-remote . "/sshx:nanopi:projects/alanpearce.eu/nixfiles/") + (ssh-deploy-on-explicit-save . 1))))) + ("system/linde.nix" . + ((nil . ((ssh-deploy-root-local . "/home/alan/projects/alanpearce.eu/nixfiles/") + (ssh-deploy-root-remote . "/sshx:linde:projects/alanpearce.eu/nixfiles/") + (ssh-deploy-on-explicit-save . 1) + (ssh-deploy-async . 1))))))
M user/emacs/init.el → user/emacs/init.el
@@ -675,6 +675,12 @@ '(nil "\\`root\\'" "/ssh:%h:")) (add-to-list 'tramp-default-proxies-alist `(,(regexp-quote (system-name)) nil nil)))) +(use-package ssh-deploy + :config (progn + (ssh-deploy-line-mode +1) + (ssh-deploy-add-find-file-hook) + (ssh-deploy-add-after-save-hook))) + ;;; Directories (setq dired-dwim-target t @@ -1296,7 +1302,8 @@ "bz" #'bury-buffer "iu" #'insert-char "xe" #'eval-last-sexp "xx" #'eval-defun - "xi" #'consult-imenu) + "xi" #'consult-imenu + "z" '(:keymap ssh-deploy-prefix-map :package ssh-deploy)) (let ((mail-config (expand-file-name "mail.el" user-emacs-directory))) (if (file-readable-p mail-config)
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -144,6 +144,7 @@ posframe quickrun rainbow-mode rainbow-delimiters + ssh-deploy stimmung-themes systemd tempel