diff options
| author | Richard M. Stallman | 2007-07-03 02:54:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-07-03 02:54:48 +0000 |
| commit | cf84d3ce7b2ed79e3486eb8b0af148617ad2328c (patch) | |
| tree | 88d1622306806530030c7b826e8cd1782cc4c6ab | |
| parent | ad3d50ef6dccf338a598332e4e7a11f477458b34 (diff) | |
| download | emacs-cf84d3ce7b2ed79e3486eb8b0af148617ad2328c.tar.gz emacs-cf84d3ce7b2ed79e3486eb8b0af148617ad2328c.zip | |
(command-line): Set buffer-offer-save in *scratch* and enable auto-save in it.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/startup.el | 5 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 863e1719825..27ec4a9f83a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2007-07-03 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * files.el (make-directory): Doc fix. | ||
| 4 | (find-file-confirm-inexistent-file): Make it a defcustom. | ||
| 5 | Make nil the default. | ||
| 6 | |||
| 7 | 2007-07-02 Richard Stallman <rms@gnu.org> | ||
| 8 | |||
| 9 | * startup.el (command-line): Set buffer-offer-save in *scratch* | ||
| 10 | and enable auto-save in it. | ||
| 11 | |||
| 1 | 2007-07-02 Carsten Dominik <dominik@science.uva.nl> | 12 | 2007-07-02 Carsten Dominik <dominik@science.uva.nl> |
| 2 | 13 | ||
| 3 | * textmodes/org.el (orgstruct-mode-map): New variable. | 14 | * textmodes/org.el (orgstruct-mode-map): New variable. |
diff --git a/lisp/startup.el b/lisp/startup.el index 1943367dfc8..4e43b39bfd4 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1055,7 +1055,10 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 1055 | (if (get-buffer "*scratch*") | 1055 | (if (get-buffer "*scratch*") |
| 1056 | (with-current-buffer "*scratch*" | 1056 | (with-current-buffer "*scratch*" |
| 1057 | (if (eq major-mode 'fundamental-mode) | 1057 | (if (eq major-mode 'fundamental-mode) |
| 1058 | (funcall initial-major-mode)))) | 1058 | (funcall initial-major-mode)) |
| 1059 | ;; Don't lose text that users type in *scratch*. | ||
| 1060 | (setq buffer-offer-save t) | ||
| 1061 | (auto-save-mode 1))) | ||
| 1059 | 1062 | ||
| 1060 | ;; Load library for our terminal type. | 1063 | ;; Load library for our terminal type. |
| 1061 | ;; User init file can set term-file-prefix to nil to prevent this. | 1064 | ;; User init file can set term-file-prefix to nil to prevent this. |