Commit cf84d3ce authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(command-line): Set buffer-offer-save in *scratch* and enable auto-save in it.

parent ad3d50ef
2007-07-03 Richard Stallman <rms@gnu.org>
* files.el (make-directory): Doc fix.
(find-file-confirm-inexistent-file): Make it a defcustom.
Make nil the default.
2007-07-02 Richard Stallman <rms@gnu.org>
* startup.el (command-line): Set buffer-offer-save in *scratch*
and enable auto-save in it.
2007-07-02 Carsten Dominik <dominik@science.uva.nl> 2007-07-02 Carsten Dominik <dominik@science.uva.nl>
* textmodes/org.el (orgstruct-mode-map): New variable. * textmodes/org.el (orgstruct-mode-map): New variable.
......
...@@ -1055,7 +1055,10 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." ...@@ -1055,7 +1055,10 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(if (get-buffer "*scratch*") (if (get-buffer "*scratch*")
(with-current-buffer "*scratch*" (with-current-buffer "*scratch*"
(if (eq major-mode 'fundamental-mode) (if (eq major-mode 'fundamental-mode)
(funcall initial-major-mode)))) (funcall initial-major-mode))
;; Don't lose text that users type in *scratch*.
(setq buffer-offer-save t)
(auto-save-mode 1)))
;; Load library for our terminal type. ;; Load library for our terminal type.
;; User init file can set term-file-prefix to nil to prevent this. ;; User init file can set term-file-prefix to nil to prevent this.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment