Meadowに右クリックでファイルを送る by emacsclient

SendToにMeadowを加え、かつ、Meadowがすでに起動していればそのMeadowに対してファイルを送るようにするMemo

実現するには以下の手順を踏めばよい。

.emacs に server-start の設定追加

(if (locate-library "server")
    (progn
      (load-library "server")
      (server-start)
      ))

レジストリに emacsclient.exe を追加

"Meadowのインストールディレクトリ"\bin\emacsclient.exe
を使用する。

(私の環境はWindowsXPです)
レジストリ
【HKEY_CLASSES_ROOT\*\shell\meadow\command】
を追加。

command に文字列値を追加し、データを
「"Meadowディレクトリ\bin\emacsclient.exe" "-n" "-a" "Meadowディレクトリ\bin\RunMW32.exe" "%1"」
とする。

ちなみに「-n」オプションは、コマンドプロンプトのウィンドウが出っ放しになる(emacsclient.exe の戻り値を待つ)のを防ぐため。
「-a + RunMW32.exe」はMeadowが起動していなかった場合に起動するための設定。