man > emacs(1)

EMACS(1)                  General Commands Manual                  EMACS(1)

๐Ÿ“– NAME

emacs - GNU project Emacs editor

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ“‚ Open fileemacs fileEdit file
๐Ÿ”ข Jump to lineemacs +25 fileGo to line 25
โšก Start as daemonemacs --daemonStart Emacs server in background
๐Ÿ“œ Batch scriptemacs --batch -l script.el -f my-funcRun Lisp script nonโ€‘interactively
๐Ÿ–ฅ๏ธ No windowemacs -nwRun in terminal (no GUI frame)
๐ŸŽจ Set colorsemacs -fg white -bg darkblue --reverse-videoCustom foreground/background
๐Ÿงช Debug initemacs --debug-initEnable debugger on ~/.emacs
๐Ÿ“‹ Insert fileemacs --batch --insert=input.txt --eval='(message "done")' --killInsert file content and quit

๐Ÿ“‹ SYNOPSIS

emacs [ command-line switches ] [ files ... ]

๐Ÿ“ DESCRIPTION

GNU Emacs is a version of Emacs, written by the author of the original (PDP-10) Emacs, Richard Stallman. The user functionality of GNU Emacs encompasses everything other editors do, and it is easily extensible since its editing commands are written in Lisp.

The primary documentation of GNU Emacs is in the GNU Emacs Manual, which you can read using Info, either from Emacs or as a standalone program. Please look there for complete and upโ€‘toโ€‘date documentation. This man page is updated only when someone volunteers to do so.

Emacs has an extensive interactive help facility, but the facility assumes that you know how to manipulate Emacs windows and buffers. CTRL-h or F1 enters the Help facility. Help Tutorial (CTRL-h t) starts an interactive tutorial to quickly teach beginners the fundamentals of Emacs. Help Apropos (CTRL-h a) helps you find a command with a name matching a given pattern, Help Key (CTRL-h k) describes a given key sequence, and Help Function (CTRL-h f) describes a given Lisp function.

GNU Emacs's many special packages handle mail reading (RMail) and sending (Mail), outline editing (Outline), compiling (Compile), running subshells within Emacs windows (Shell), running a Lisp readโ€‘evalโ€‘print loop (Lispโ€‘Interactionโ€‘Mode), automated psychotherapy (Doctor), and much more.

โš™๏ธ Emacs Options

The following options are of general interest:

The following options are Lispโ€‘oriented (processed in order):

The following options are useful when running Emacs as a batch editor:

๐Ÿ–ฅ๏ธ Using Emacs with X

Emacs has been tailored to work well with the X window system. If you run Emacs from under X windows, it will create its own X window to display in. You will probably want to start the editor as a background process so that you can continue using your original window.

Emacs can be started with the following X switches:

You can set X default values for your Emacs windows in ~/.Xresources (see xrdb(1)). Use the format:

emacs.keyword:value

Available keyword settings:

๐Ÿ“˜ MANUALS

You can order printed copies of the GNU Emacs Manual from the Free Software Foundation, which develops GNU software. See the online store at https://shop.fsf.org/.

Your local administrator might also have copies available. As with all software and publications from FSF, everyone is permitted to make and distribute copies of the Emacs manual. The Texinfo source to the manual is also included in the Emacs source distribution.

๐Ÿ“ FILES

๐Ÿ› BUGS

There is a mailing list, bug-gnu-emacs AT gnu.org, for reporting Emacs bugs and fixes. Before reporting, please verify it is a bug and not a misunderstanding or feature. Read the โ€œReporting Bugsโ€ section in the Emacs manual. Include the Emacs version number in every bug report. Isolated bugs are more likely to be fixed.

Do not expect a personal answer. The goal is to fix bugs for the next release. For personal assistance, consult the service directory at https://www.fsf.org/resources/service/.

Please send only bug reports to this list. For other Emacs lists, see https://savannah.gnu.org/mail/?group=emacs.

๐Ÿ”“ UNRESTRICTIONS

Emacs is free; anyone may redistribute copies of Emacs to anyone under the terms stated in the GNU General Public License, a copy of which accompanies each copy of Emacs and which also appears in the reference manual.

Copies of Emacs may sometimes be received packaged with distributions of Unix systems, but it is never included in the scope of any license covering those systems. Such inclusion violates the terms on which distribution is permitted. The primary purpose of the GNU General Public License is to prohibit anyone from attaching any other restrictions to redistribution of Emacs.

Richard Stallman encourages you to improve and extend Emacs, and urges that you contribute your extensions to the GNU library. Eventually GNU (Gnuโ€™s Not Unix) will be a complete replacement for Unix. Everyone will be free to use, copy, study and change the GNU system.

๐Ÿ“š SEE ALSO

emacsclient(1), etags(1), X(7), xlsfonts(1), xterm(1), xrdb(1)

๐Ÿ‘ฅ AUTHORS

Emacs was written by Richard Stallman and the Free Software Foundation. For detailed credits and acknowledgments, see the GNU Emacs manual.

ยฉ COPYING

Copyright 1995, 1999โ€‘2020 Free Software Foundation, Inc.

Permission is granted to make and distribute verbatim copies of this document provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this document under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this document into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation.


GNU Emacs 27.1            2007 April 13            EMACS(1)

emacs(1)
๐Ÿ“– NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“ DESCRIPTION
โš™๏ธ Emacs Options ๐Ÿ–ฅ๏ธ Using Emacs with X
๐Ÿ“˜ MANUALS ๐Ÿ“ FILES ๐Ÿ› BUGS ๐Ÿ”“ UNRESTRICTIONS ๐Ÿ“š SEE ALSO ๐Ÿ‘ฅ AUTHORS ยฉ COPYING

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 17:38 @2600:1f28:365:80b0:f8a4:e764:d6bb:8e66
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^