怎么实现emacs的org-mode 自动保存(only for org-mode)
发表于 : 2012-08-04 15:59
如下代码,在调下。
(add-hook 'org-mode-hook 'my-org-mode-autosave-settings)
(defun my-org-mode-autosave-settings
;; (auto-save-mode 1) ; this is unecessary as it is on by default
(set (make-local-variable 'auto-save-visited-file-name) t)
(setq auto-save-interval 20)
(add-hook 'org-mode-hook 'my-org-mode-autosave-settings)
(defun my-org-mode-autosave-settings
;; (auto-save-mode 1) ; this is unecessary as it is on by default
(set (make-local-variable 'auto-save-visited-file-name) t)
(setq auto-save-interval 20)