diff options
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/edt.texi | 4 | ||||
| -rw-r--r-- | doc/misc/efaq.texi | 12 | ||||
| -rw-r--r-- | doc/misc/vip.texi | 2 |
4 files changed, 14 insertions, 9 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 39ae01e86ec..f017e9479a4 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2014-02-25 Glenn Morris <rgm@gnu.org> | 1 | 2014-02-25 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * edt.texi (Quick start, Starting emulation): Update hook details. | ||
| 4 | * efaq.texi (Fullscreen mode on MS-Windows) | ||
| 5 | (Terminal setup code works after Emacs has begun): Update hook details. | ||
| 6 | * vip.texi (Loading VIP): Fix hook example. | ||
| 7 | |||
| 3 | * efaq-w32.texi (Bash): Don't use setq with hooks. | 8 | * efaq-w32.texi (Bash): Don't use setq with hooks. |
| 4 | 9 | ||
| 5 | 2014-02-24 Paul Eggert <eggert@cs.ucla.edu> | 10 | 2014-02-24 Paul Eggert <eggert@cs.ucla.edu> |
diff --git a/doc/misc/edt.texi b/doc/misc/edt.texi index c4937d4ae6e..ef27d339e9e 100644 --- a/doc/misc/edt.texi +++ b/doc/misc/edt.texi | |||
| @@ -91,7 +91,7 @@ initiate an Emacs session, by adding the following line to your | |||
| 91 | @file{.emacs} file: | 91 | @file{.emacs} file: |
| 92 | 92 | ||
| 93 | @example | 93 | @example |
| 94 | (add-hook term-setup-hook 'edt-emulation-on) | 94 | (add-hook 'emacs-startup-hook 'edt-emulation-on) |
| 95 | @end example | 95 | @end example |
| 96 | 96 | ||
| 97 | @noindent @strong{Important:} Be sure to read the rest of this manual. | 97 | @noindent @strong{Important:} Be sure to read the rest of this manual. |
| @@ -295,7 +295,7 @@ initiate an Emacs session, by adding the following line to your | |||
| 295 | @file{.emacs} file: | 295 | @file{.emacs} file: |
| 296 | 296 | ||
| 297 | @example | 297 | @example |
| 298 | (add-hook term-setup-hook 'edt-emulation-on) | 298 | (add-hook 'emacs-startup-hook 'edt-emulation-on) |
| 299 | @end example | 299 | @end example |
| 300 | 300 | ||
| 301 | A reference sheet is included (later on) listing the default EDT | 301 | A reference sheet is included (later on) listing the default EDT |
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index a13d3df43f1..ca9e24fbeaa 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi | |||
| @@ -2684,8 +2684,8 @@ Use the function @code{w32-send-sys-command}. For example, you can | |||
| 2684 | put the following in your @file{.emacs} file: | 2684 | put the following in your @file{.emacs} file: |
| 2685 | 2685 | ||
| 2686 | @lisp | 2686 | @lisp |
| 2687 | (add-hook 'term-setup-hook | 2687 | (add-hook 'emacs-startup-hook |
| 2688 | #'(lambda () (w32-send-sys-command ?\xF030))) | 2688 | (lambda () (w32-send-sys-command ?\xF030))) |
| 2689 | @end lisp | 2689 | @end lisp |
| 2690 | 2690 | ||
| 2691 | To avoid the slightly distracting visual effect of Emacs starting with | 2691 | To avoid the slightly distracting visual effect of Emacs starting with |
| @@ -3594,12 +3594,12 @@ been executed but is not, then you will experience this problem (this | |||
| 3594 | code/file execution order is not enforced after startup). | 3594 | code/file execution order is not enforced after startup). |
| 3595 | 3595 | ||
| 3596 | To postpone the execution of Emacs Lisp code until after terminal or | 3596 | To postpone the execution of Emacs Lisp code until after terminal or |
| 3597 | window-system setup, treat the code as a @dfn{lambda list} and set the | 3597 | window-system setup, treat the code as a @dfn{lambda list} and add it to |
| 3598 | value of either the @code{term-setup-hook} or @code{window-setup-hook} | 3598 | @code{emacs-startup-hook} (or @code{tty-setup-hook} in Emacs 24.4 and |
| 3599 | variable to this lambda function. For example, | 3599 | newer). For example, |
| 3600 | 3600 | ||
| 3601 | @lisp | 3601 | @lisp |
| 3602 | (add-hook 'term-setup-hook | 3602 | (add-hook 'emacs-startup-hook |
| 3603 | (lambda () | 3603 | (lambda () |
| 3604 | (when (string-match "\\`vt220" (or (getenv "TERM") "")) | 3604 | (when (string-match "\\`vt220" (or (getenv "TERM") "")) |
| 3605 | ;; Make vt220's "Do" key behave like M-x: | 3605 | ;; Make vt220's "Do" key behave like M-x: |
diff --git a/doc/misc/vip.texi b/doc/misc/vip.texi index 367ed2adb4c..90dc3cd8dec 100644 --- a/doc/misc/vip.texi +++ b/doc/misc/vip.texi | |||
| @@ -165,7 +165,7 @@ directory and it will be executed every time you invoke Emacs. If you wish | |||
| 165 | to be in vi mode whenever Emacs starts up, you can include the following | 165 | to be in vi mode whenever Emacs starts up, you can include the following |
| 166 | line in your @file{.emacs} file instead of the above line: | 166 | line in your @file{.emacs} file instead of the above line: |
| 167 | @example | 167 | @example |
| 168 | (setq term-setup-hook 'vip-mode) | 168 | (add-hook 'emacs-startup-hook 'vip-mode) |
| 169 | @end example | 169 | @end example |
| 170 | @noindent | 170 | @noindent |
| 171 | (@xref{Vi Mode}, for the explanation of vi mode.) | 171 | (@xref{Vi Mode}, for the explanation of vi mode.) |