tools/upload: set ssh-deploy vars sooner
So that they don't overwrite file/dir local vars in some cases.
This commit is contained in:
parent
408eecad8e
commit
7214affc73
1 changed files with 5 additions and 6 deletions
|
@ -19,6 +19,10 @@
|
|||
ssh-deploy-browse-remote-handler
|
||||
ssh-deploy-remote-changes-handler)
|
||||
:init
|
||||
(setq ssh-deploy-revision-folder (concat doom-cache-dir "ssh-revisions/")
|
||||
ssh-deploy-on-explicit-save t
|
||||
ssh-deploy-automatically-detect-remote-changes nil)
|
||||
|
||||
;; Make these safe as file-local variables
|
||||
(dolist (sym '((ssh-deploy-root-local . stringp)
|
||||
(ssh-deploy-root-remote . stringp)
|
||||
|
@ -44,9 +48,4 @@
|
|||
(setq ssh-deploy-root-local (doom-project-root)))
|
||||
(when ssh-deploy-automatically-detect-remote-changes
|
||||
(ssh-deploy-remote-changes-handler))))
|
||||
(add-hook 'find-file-hook #'+upload|init-find-file)
|
||||
:config
|
||||
(setq ssh-deploy-revision-folder (concat doom-cache-dir "ssh-revisions/")
|
||||
ssh-deploy-on-explicit-save t
|
||||
ssh-deploy-automatically-detect-remote-changes t))
|
||||
|
||||
(add-hook 'find-file-hook #'+upload|init-find-file))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue