2010-09-01 Wed
■ emacsclient [emacs]
ちょこっとファイルを見たいときに, 毎回 emacs を起動するのは辛い.
で, 既に起動している emacs に追加でファイルを表示(修正)させるのが, emacsclient.
- まず, フツーに起動した emacs をサーバ化.
M-x server-start
もしくは .emacs に
;; emacs server の起動
(server-start)
- emacsclient 起動
> emacsclient -n FILE_NAME
-n すると, 別プロセスで実行するみたい
つまり, sh で -n ナシで emacsclient 実行すると, 対象のファイル操作を終了しない限り, sh が実行のままとなる.
emacsclient でググると, いろいろ面白う使い方が出て来る.
最終更新時間: 2025-01-14 10:03