tldr/pages/common/emacsclient.md

25 lines
539 B
Markdown
Raw Normal View History

2017-12-28 10:00:04 +00:00
# emacsclient
> Open files in an existing emacs server.
2019-06-08 01:04:00 +01:00
> More information: <https://www.emacswiki.org/emacs/EmacsClient>.
2017-12-28 10:00:04 +00:00
2018-01-03 08:42:26 +00:00
- Open files in an existing Emacs server (using GUI if available):
`emacsclient {{filename}}`
2017-12-28 10:00:04 +00:00
- Open file in console mode (without X window):
`emacsclient -nw {{filename}}`
- Open a file in an existing emacs frame and return immediately:
2017-12-28 10:00:04 +00:00
`emacsclient -n {{filename}}`
2020-07-17 21:17:43 +01:00
- Open file in a new emacs frame:
`emacsclient -c {{filename}}`
- Eval command in a new emacs frame:
`emacsclient -c -e '({{command}})'`