emacs Command Generator
Generate emacs commands to edit files in the extensible editor
Getting Started with emacs
## What is emacs?
`emacs` is the extensible, customizable GNU text editor. Far more than an editor, it bundles a mail reader, file manager, debugger, and even games (all scripted in Emacs Lisp). It works in both GUI and pure-terminal mode, making it a popular choice for long-running coding sessions.
## How to Use
1. **Set Options**: Choose terminal mode, skip the init file, run batch mode, etc. 2. **Specify File**: Enter the path of the file to edit (optional in interactive mode). 3. **Copy & Run**: Paste the generated command into your terminal.
To exit: press `Ctrl+X` then `Ctrl+C`. To save: `Ctrl+X` then `Ctrl+S`.
Common Options
### `-nw` No window (terminal) mode Run emacs inside the terminal instead of opening an X/GTK window. Essential over SSH or on headless servers.
### `-q` No init file Skip loading `~/.emacs` and `~/.emacs.d/` — start with the default configuration. Useful for isolating bugs or testing vanilla behavior.
### `-u USER` Load another user's init Load the init file belonging to the named user instead of yours. Handy for reproducing someone else's setup.
### `--batch` Batch mode Run non-interactively for scripting: process files with Lisp, evaluate expressions, then exit. Combine with `--eval` or `--script` for automation.
▶How do I run emacs inside the terminal over SSH?
▶How do I start emacs without my personal config?
▶How do I use emacs non-interactively in a script?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee