Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d99aaebd
Commit
d99aaebd
authored
Mar 02, 2010
by
Chong Yidong
Browse files
* faq.texi: Note that ansi-color is now enabled by default.
parent
05c46805
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
doc/misc/ChangeLog
doc/misc/ChangeLog
+5
-0
doc/misc/faq.texi
doc/misc/faq.texi
+13
-16
No files found.
doc/misc/ChangeLog
View file @
d99aaebd
2010-03-03 Chong Yidong <cyd@stupidchicken.com>
* faq.texi (Escape sequences in shell output): Note that ansi-color is
now enabled by default.
2010-02-28 Michael Albinus <michael.albinus@gmx.de>
* dbus.texi (Errors and Events): D-Bus messages are retrieved only,
...
...
doc/misc/faq.texi
View file @
d99aaebd
...
...
@@ -2617,22 +2617,19 @@ Add the following line to your @file{.emacs} file:
@cindex Escape sequences in @code{ls} output
@cindex @code{ls} in Shell mode
This happens because @code{ls} is aliased to @samp{ls --color} in your
shell init file. You have two alternatives to solve this:
@itemize @bullet
@item
Make the alias conditioned on the @code{EMACS} variable in the
environment. When Emacs runs a subsidiary shell, it exports the
@code{EMACS} variable to that shell, with value equal to the absolute
file name of Emacs. You can
unalias @code{ls} when that happens, thus limiting the alias to your
interactive sessions.
@item
Install the @code{ansi-color} package (bundled with Emacs 21.1 and
later), which converts these ANSI escape sequences into colors.
@end itemize
In many systems, @code{ls} is aliased to @samp{ls --color}, which
prints using ANSI color escape sequences. Emacs version 21.1 and
later includes the @code{ansi-color} package, which lets Shell mode
recognize these escape sequences. In Emacs 23.2 and later, the
package is enabled by default; in earlier versions you can enable it
by typing @kbd{M-x ansi-color-for-comint-mode} in the Shell buffer, or
by adding @code{(add-hook '
shell
-
mode
-
hook
'ansi-color-for-comint-mode-on)} to your init file.
In Emacs versions before 21.1, the @code{ansi-color} package is not
included. In that case, you need to unalias @code{ls} for interactive
shells running in Emacs; this can be done by checking the @code{EMACS}
variable in the environment.
@node Fullscreen mode on MS-Windows
@section How can I start Emacs in fullscreen mode on MS-Windows?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment