diff options
| author | Chong Yidong | 2010-03-02 21:44:52 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-03-02 21:44:52 -0500 |
| commit | d99aaebdb4375b04b9cc76d5baf5819ff160a790 (patch) | |
| tree | 3ae362ce5d818782b4d3acf5ed486dda34f942e3 | |
| parent | 05c4680567c3da44847e74e03885f6babab5f79b (diff) | |
| download | emacs-d99aaebdb4375b04b9cc76d5baf5819ff160a790.tar.gz emacs-d99aaebdb4375b04b9cc76d5baf5819ff160a790.zip | |
* faq.texi: Note that ansi-color is now enabled by default.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/faq.texi | 29 |
2 files changed, 18 insertions, 16 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 31216e4fe37..3e491c42de9 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-03-03 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * faq.texi (Escape sequences in shell output): Note that ansi-color is | ||
| 4 | now enabled by default. | ||
| 5 | |||
| 1 | 2010-02-28 Michael Albinus <michael.albinus@gmx.de> | 6 | 2010-02-28 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * dbus.texi (Errors and Events): D-Bus messages are retrieved only, | 8 | * dbus.texi (Errors and Events): D-Bus messages are retrieved only, |
diff --git a/doc/misc/faq.texi b/doc/misc/faq.texi index 9dab41e9af9..d4c0addf43a 100644 --- a/doc/misc/faq.texi +++ b/doc/misc/faq.texi | |||
| @@ -2617,22 +2617,19 @@ Add the following line to your @file{.emacs} file: | |||
| 2617 | @cindex Escape sequences in @code{ls} output | 2617 | @cindex Escape sequences in @code{ls} output |
| 2618 | @cindex @code{ls} in Shell mode | 2618 | @cindex @code{ls} in Shell mode |
| 2619 | 2619 | ||
| 2620 | This happens because @code{ls} is aliased to @samp{ls --color} in your | 2620 | In many systems, @code{ls} is aliased to @samp{ls --color}, which |
| 2621 | shell init file. You have two alternatives to solve this: | 2621 | prints using ANSI color escape sequences. Emacs version 21.1 and |
| 2622 | 2622 | later includes the @code{ansi-color} package, which lets Shell mode | |
| 2623 | @itemize @bullet | 2623 | recognize these escape sequences. In Emacs 23.2 and later, the |
| 2624 | @item | 2624 | package is enabled by default; in earlier versions you can enable it |
| 2625 | Make the alias conditioned on the @code{EMACS} variable in the | 2625 | by typing @kbd{M-x ansi-color-for-comint-mode} in the Shell buffer, or |
| 2626 | environment. When Emacs runs a subsidiary shell, it exports the | 2626 | by adding @code{(add-hook 'shell-mode-hook |
| 2627 | @code{EMACS} variable to that shell, with value equal to the absolute | 2627 | 'ansi-color-for-comint-mode-on)} to your init file. |
| 2628 | file name of Emacs. You can | 2628 | |
| 2629 | unalias @code{ls} when that happens, thus limiting the alias to your | 2629 | In Emacs versions before 21.1, the @code{ansi-color} package is not |
| 2630 | interactive sessions. | 2630 | included. In that case, you need to unalias @code{ls} for interactive |
| 2631 | 2631 | shells running in Emacs; this can be done by checking the @code{EMACS} | |
| 2632 | @item | 2632 | variable in the environment. |
| 2633 | Install the @code{ansi-color} package (bundled with Emacs 21.1 and | ||
| 2634 | later), which converts these ANSI escape sequences into colors. | ||
| 2635 | @end itemize | ||
| 2636 | 2633 | ||
| 2637 | @node Fullscreen mode on MS-Windows | 2634 | @node Fullscreen mode on MS-Windows |
| 2638 | @section How can I start Emacs in fullscreen mode on MS-Windows? | 2635 | @section How can I start Emacs in fullscreen mode on MS-Windows? |