Emacs

http://www.emacswiki.org/emacs/BzrForEmacsDevs の The Bazaar Work Routine を適当訳

雰囲気だけ。 The Bazaar Work Routine Bazaarでの作業手順 Overview of the Bazaar work routine: Bazaarでの作業手順の概要 1. Tell Bazaar your name and email address; these will be used as defaults to identify your commits. (Usage: bzr whoami “…

anything-find-file (anyting-complete.el) のc-sourcesの先頭に要素を追加

anything-find-fileでカーソル位置のファイル(ffap-line、ffap-guesser)を開くとかしたいと思うんだ。C-x C-fはファイルを開くキーバインドだし。 ;; anything-find-file setting. (setq anything-find-file-additional-sources-at-first '(anything-c-sourc…

「[http://okajima.air-nifty.com/b/2010/01/post-abc6.html:title]」をといてみた

人生を書き換える者すらいた。: 人材獲得作戦・4 試験問題ほか そりゃもう、2日以上費やしましたよ。。。

Emacs kara im.kayac.com ni access suru

http-post-simple.el to json.el ga required.

hideshow.elとhideshowvis.elで、折りたたみ時にjavadoc形式のコメントのヘッドラインを表示させる

TODO javadoc以外のコメントのヘッドライン表示 if () {とは違い{が次の行に来ていた場合のhs-hide-toggleの挙動 (defun get-javadoc-comment-headline (start end) "Return Javadoc comment headline." (save-excursion (save-restriction (narrow-to-regio…

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…

anything-complete.elのanything-read-file-name-follow-directoryでシンボルpromptが未束縛というエラー

多分これで直ります。id:rubikitchさんどうでしょうか? @@ -907,12 +907,13 @@ used by `anything-lisp-complete-symbol-set-timer' and `anything-apropos'" (interactive) (let ((anything-map (anything-read-file-name-map)) ;; anything-read-file-nam…

anything-complete.elでちょっと思ったこと

anything-complete.elのanything-find-fileはアクションが選択できない。sudoしたいとき不便なのでkeymapを上書きする。ついでにsuじゃなくてsudoにする。 (setq anything-su-or-sudo "sudo") (define-key (anything-read-file-name-map) "\C-i" 'anything-s…

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

めも emacs --batch -no-init-file -no-site-file --directory ~/.emacs.d/elisp/ \ --eval " (progn (require 'auto-install) (require 'cl) (setq auto-install-directory (concat (car load-path) \\"/\\") auto-install-save-confirm nil auto-install-p…

install-elispをバッチモードで動かす

めも echo "http://www.emacswiki.org/emacs/download/auto-complete.el" | \ emacs --batch --load /path/to/install-elisp.el \ -eval "(setq install-elisp-repository-directory \"~/.emacs.d/elisp/\")" \ -eval "(setq install-elisp-confirm-flag nil…

vmware用に配布されているUbuntu7.10のemacsでmplusフォントを利用したときのメモ

mplusフォントのサイトからelispのコード片を.emacsにコピペしただけでは動かなかった。 エラーメッセージを見るとubuntu7.10ではこのフォントがないらしい。 ascii:-mplus-gothic-medium-r-normal--12-*-iso8859-1.Xresourcesの方に書いてあるのを参考に go…