私はさまざまな場所を調べて、最終的にEmacsの「自動保存」モードの次の設定を思いつきました:
(defvar my-auto-save-folder (concat "~/.emacs.d/auto-save")); folder for auto-saves
(setq auto-save-list-file-prefix "~/.emacs.d/auto-save/.saves-"); set prefix for auto-saves
(setq auto-save-file-name-transforms `((".*", my-auto-save-folder t))); location for all auto-save files
(setq tramp-auto-save-directory my-auto-save-folder); auto-save tramp files in local directory
このセットアップを数週間行った後、~/.emacs.d にアクセスしたところ、~/.emacs.d/auto-save フォルダーが空で、~/.emacs.d には次の形式の自動保存ファイルが 2 つ含まれていることがわかりました。#!home!<myusername>!<myfolder>!<myfile>
. 自動保存ファイルが ~/.emacs.d/auto-save に保存されないのはなぜですか? [フォルダのauto-save
権限は 775、700 .emacs.d
]