2025-03-14 21:59:59 -06:00
|
|
|
# emacsclient
|
|
|
|
|
|
|
|
|
|
> 기존 Emacs 서버에서 파일을 열기.
|
2026-06-12 17:51:25 -06:00
|
|
|
> 관련 항목: `emacs`.
|
2025-03-14 21:59:59 -06:00
|
|
|
> 더 많은 정보: <https://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html>.
|
|
|
|
|
|
|
|
|
|
- 기존 Emacs 서버에서 파일을 열기 (사용 가능한 경우, GUI 사용):
|
|
|
|
|
|
|
|
|
|
`emacsclient {{경로/대상/파일}}`
|
|
|
|
|
|
|
|
|
|
- 콘솔 모드에서 파일 열기 (X 윈도우 없이):
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`emacsclient {{[-nw|--no-window-system]}} {{경로/대상/파일}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 새로운 Emacs 창에서 파일을 열기:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`emacsclient {{[-c|--create-frame]}} {{경로/대상/파일}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 명령을 평가하고 출력을 `stdout`으로 출력한 다음 종료:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`emacsclient {{[-e|--eval]}} '({{명령어}})'`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Emacs 서버가 실행되고 있지 않은 경우, 대체 편집기를 지정:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`emacsclient {{[-a|--alternate-editor]}} {{에디터}} {{경로/대상/파일}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 실행 중인 Emacs 서버와 모든 인스턴스를 중지, 저장되지 않은 파일에 대한 확인을 요청:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`emacsclient {{[-e|--eval]}} '(save-buffers-kill-emacs)'`
|