Created
November 15, 2012 00:53
-
-
Save gongo/4075933 to your computer and use it in GitHub Desktop.
emasc-quickrun でリモートサーバの PHP を使いたい時の設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'quickrun) | |
;; 事前に公開鍵登録とかいろいろして | |
;; パスフレーズ無しの ssh ログインを可能にしておく | |
(quickrun-add-command "php-for-remote" | |
'((:command . "ssh remote-sv 'php'") | |
(:exec . ("%c < %s")) | |
(:compile-only . "%c -l < %s") ;; syntax check | |
(:description . "Run PHP script"))) | |
(quickrun-set-default "php" "php-for-remote") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
本当は override を使って
としたかったんだけど、
quickrun/language-alist
の PHP には:exec
が元々存在しないため、override では追加されなかった。(これはquickrun/override-command
の仕様っぽい)というわけで改めて
php-for-remote
って定義して set-default しました。