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:
Evie Litherland-Smith 2024-11-18 14:40:33 +00:00
parent 080145e793
commit 0bc82d422c

View file

@ -323,14 +323,23 @@ Rules and packages for buffer management and window navigation.
#+end_src
** Org Mode
** 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
#+begin_src emacs-lisp
(use-package tramp
:defer t
:custom
(tramp-default-method "sshx")
(tramp-default-method "scp")
(tramp-backup-directory-alist 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
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
(add-to-list 'tramp-remote-path "~/.local/bin/")