]> git.eshelyaron.com Git - emacs.git/commitdiff
(Shell Options): Add brief mention of ansi-color.
authorRichard M. Stallman <rms@gnu.org>
Sun, 11 Nov 2001 20:09:34 +0000 (20:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 11 Nov 2001 20:09:34 +0000 (20:09 +0000)
man/misc.texi

index ec1f53c95ee759498f8aec6eafef9f11416b3356..7441c7c3db80982773877246f25386e5116a796d 100644 (file)
@@ -959,6 +959,13 @@ directory stack if they are not already on it
 (@code{shell-pushd-dunique}).  The values you choose should match the
 underlying shell, of course.
 
+  If you want Shell mode to handle color output from shell commands,
+you can enable ANSI Color mode.  Here is how to do this:
+
+@example
+(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
+@end example
+
 @node Terminal emulator
 @subsection Emacs Terminal Emulator
 @findex term