brew edit emacs
としたときにエラー。
emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". emacsclient: No socket or alternate editor. Please use: --socket-name --server-file (or environment variable EMACS_SERVER_FILE) --alternate-editor (or environment variable ALTERNATE_EDITOR)
emacsclient と emacs のバージョンが合っていないのが原因。
emacs は brew で install 済み。
brew ln --overwrite emacs
で emacsclient や emacs コマンドを /usr/local/bin
にコピーして解決。