Tweak remote file caching and locks to try and improve TRAMP performance
Add directory abbreviations for the N-drive and T-drive Set TRAMP default method to be scp
This commit is contained in:
parent
080145e793
commit
0bc82d422c
11
README.org
11
README.org
|
@ -323,14 +323,23 @@ Rules and packages for buffer management and window navigation.
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org Mode
|
** Org Mode
|
||||||
** Development Tools
|
** Development Tools
|
||||||
|
*** Directory shortcuts
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(add-to-list 'directory-abbrev-alist
|
||||||
|
'("^/ndrive" . "/smb:elitherl%ccfepc@msrv-cfshare.ccfepc.ccfe.ac.uk:/NDrive/"))
|
||||||
|
(add-to-list 'directory-abbrev-alist
|
||||||
|
'("^/tdrive" . "/smb:elitherl%ccfepc@msrv-cfshare.ccfepc.ccfe.ac.uk:/NewT/"))
|
||||||
|
#+end_src
|
||||||
*** TRAMP
|
*** TRAMP
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package tramp
|
(use-package tramp
|
||||||
:defer t
|
:defer t
|
||||||
:custom
|
:custom
|
||||||
(tramp-default-method "sshx")
|
(tramp-default-method "scp")
|
||||||
(tramp-backup-directory-alist backup-directory-alist)
|
(tramp-backup-directory-alist backup-directory-alist)
|
||||||
(tramp-auto-save-directory (cdr (assoc "." tramp-backup-directory-alist)))
|
(tramp-auto-save-directory (cdr (assoc "." tramp-backup-directory-alist)))
|
||||||
|
(remote-file-name-inhibit-cache 300)
|
||||||
|
(remote-file-name-inhibit-locks t)
|
||||||
:config
|
:config
|
||||||
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
|
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
|
||||||
(add-to-list 'tramp-remote-path "~/.local/bin/")
|
(add-to-list 'tramp-remote-path "~/.local/bin/")
|
||||||
|
|
Loading…
Reference in a new issue