summaryrefslogtreecommitdiff
path: root/emacs/.config/emacs-kj
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.config/emacs-kj')
-rw-r--r--emacs/.config/emacs-kj/init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/emacs/.config/emacs-kj/init.el b/emacs/.config/emacs-kj/init.el
index f7c1d07..c4c3d48 100644
--- a/emacs/.config/emacs-kj/init.el
+++ b/emacs/.config/emacs-kj/init.el
@@ -243,6 +243,11 @@
;; For recent files.
(setq recentf-max-saved-items 1000)
(setq recentf-auto-cleanup 'never)
+(defun kj/recentf-keep (file)
+ (cond
+ ((file-remote-p file) t)
+ ((file-readable-p file))))
+(setq recentf-keep '(kj/recentf-keep))
(setq recentf-save-file "~/.cache/emacs-recentf")
(recentf-mode 1)
(run-at-time nil (* 5 60) 'recentf-save-list)
@@ -573,6 +578,10 @@
;; Tramp settings
(setq tramp-use-ssh-controlmaster-options nil
tramp-default-method "ssh")
+;; Need 'eval-after-load' of 'tramp-sh' here because nixos has a
+;; startup file that messes with this variable.
+(with-eval-after-load 'tramp-sh
+ (add-to-list 'tramp-remote-path 'tramp-own-remote-path))
(setq math-additional-units
'((ZiB "1024 * EiB" "Zebibyte")