2009-10-01から1ヶ月間の記事一覧

anything.elでphtmlやrhtmlを開くときにウェブブラウザで開こうとするのを防ぐ

phpのコードやrubyのコードが含まれているので、たぶんウェブブラウザでは開きたくない。 diff --git a/plugins/anything-config.el b/plugins/anything-config.el index 8e0a797..607e61d 100644 --- a/plugins/anything-config.el +++ b/plugins/anything-…

yasnippet-0.6.1cとauto-complete-yasnippet

こんな感じにした。こっちは動くかなら diff --git a/plugins/auto-complete-yasnippet.el b/plugins/auto-complete-yasnippet.el index b4ea9a8..c47b447 100644 --- a/plugins/auto-complete-yasnippet.el +++ b/plugins/auto-complete-yasnippet.el @@ -3…

yasnippet-0.6.1b(c?)を使うとanything-c-yasnippet.elが動かない

yasnippet-0.6.1b(c?)では、yas/snippet-table-hashのデータ構造とyas/expand-snippetの引数の順番が以前のバージョンとは違うらしい。 以下パッチ diff --git a/plugins/anything-c-yasnippet.el b/plugins/anything-c-yasnippet.el index b74c115..79020d9…

auto-install.elをバッチモードで動かす その2

以前の案ではコンパイルに失敗すると止まったので書き直した。 バッファーにauto-install.elの出力を書き出して終了を表す文字列が表示されたらwaitループを抜ける。 (progn (setq install_dir (expand-file-name "#{install_dir}") load-path (cons install…

anything-read-bufferの件つづき

read-bufferって内部でread-buffer-functionが定義されていればそれを、定義されていなければcompleting-readを呼び出す。 anything-completing-readがanythingの結果がnilの場合keyboard-quitしているんだからanything-read-bufferがkeyboard-quitしないの…

anything-read-bufferがシグナルのquitをハンドリングするのでkill-bufferでC-gで取り消したつもりがバッファが削除される

Twitter / troter: kill-buffer->interactiv ...とりあえずコレで回避できるけど絶対正攻法ではない。this-commandとかよくわからない (defadvice anything-read-buffer (around transmissive-keyboard-quit-anything-read-buffer) (let ((it ad-do-it)) (if…