2016-05-30 18 views
0

私はOSXを使用していますが、私はMac用にEmacs 24.5を持っています。 Iセットアップサーバーのパスを、そして私のinit.elにサーバーを起動します。emacsサーバ起動後にemacsサーバファイルが空になる

(setq server-socket-dir "~/.emacs.d/server") 
    (server-start) 

が、私はemacsclient somefileを実行したとき、私はこのエラーを持っている:

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) 

私は、周りに検索し、非作品私。私は次に、~/.emacs.d/server/server. and I found it is totally empty... I believe that is the reason thatのemacsclient`サーバファイルを掘り下げてみてください。どれも似ていて、それを解決する方法を知っていますか?

おかげUが問題を発見した

+0

いいえ、それは問題ではありません。何があっても、server-socket-dirには何も設定しないでください。 – pvg

+0

もし私がserver-socket-dirを設定しないと、同じ問題が発生します。 – shelper

+0

http://stackoverflow.com/questions/23148787/why-emacsclient-cant-find-socket-after-executing-emacs-daemon – pvg

答えて

0

、私が使用しemacsclientは、usr/bin/emacsclientでOSXの自身のコピーではありません1 Emacsで24.5 私は自分の.profileに以下の行を追加し、今

alias emacsclient="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" 
の作品
関連する問題