foo, bar, baz まではよく使うが、その先はよく失念するので。。 foo,bar,baz,qux,quux,corge,grault,waldo,fred,plugh,xyzzy,thud 2001年に standard list of metasyntactic variables(標準メタ構文変数リスト,RFC3092) で規定されたんだとかw http://www.bitcoffee.com/jp/Column/sakuma/hogehoge.html より
http://yasnippet.googlecode.com/svn/trunk/doc/index.html .emacsの修正 0.6.0から yas/extra-mode-hooksの設定の必要がなくなった -(add-to-list 'yas/extra-mode-hooks 'ruby-mode-hook) -(add-to-list 'yas/extra-mode-hooks 'cperl-mode-hook) -(add-to-list 'yas/extra-mode-hooks 'c++-mode-hook) -(add-to-list 'yas/extra-mode-hooks 'c-mode-hook) -(add-to-list 'yas/extra-mode-hooks 'java-mode-hook) また、0.6.0から、候補が複数存在する場合の選択関数を設定
常にemacsのwindowを複数に分割して作業しているので、どうしてもanythingウインドウが小さくなってしまい不自由していた。 しかし、anything-display-functionを使ってanything.elのウィンドウ表示を制御する - Emacs/Lisp/Drill - Emacsグループ の split-root.el を用いた方法で気持ちよく解決。 anything.el に、anything-display-function なる便利な設定が追加されたことに今更ながら気がついた orz 因みに、記事の通りの設定だと、widen-window.el と併用したときに動作に違和感があったので、高さを window-height ではなく、 frame-height を元にして求めるように変更した。 (require 'split-root) (defvar anyt
anything-sourceを変更しているとき、何度変更しても元に戻ってしまうという、ナゾの現象に遭遇した。 全lispファイルをgrepで確認しても、上書きしている箇所は見あたらず。 ウンウン悩んだあげく、session.elが犯人だと突き止めた。 (setq session-globals-regexp "-\\(ring\\|history\\)\\'")この設定で "ring" 及び "history" が含まれるシンボル全てが、再起動時に元に戻されてしまっている! 変更していたanything-source は "anything-c-source-mark-ring"。ハァ… 他にも、anything-c-source-kill-ring も対象になってしまっていたので、session.elの対象となるシンボルルールを変更した。 session-globals-include
マーク箇所をリスティングする anything-c-source-mark-ring を作った。 ソフトウェアと本の覚え書き(2008-10-25) のパクリ + persistent-action の追加という代物。 微妙にanythingインターフェースの作り方忘れてるw というか、こんなことしている場合じゃ無いはずww 20:41修正 元々の作者さんも書いていたが、リングの内容がずれるて表示されるので、無理矢理修正。 icicleのパクリコードです。 (defvar anything-c-source-mark-ring '((name . "mark-ring") (candidates . anything-c-source-mark-ring-init) (init . anything-c-source-mark-ring-init) (action . (("Goto li
EmacsWiki: Goto Chg カレントバッファの変更箇所を順にジャンプできる。 コーディング中にファイルのほかの箇所を参照するときは、C-spcでマークしてから参照C-x x で戻るのが一般的な手順。 しかし、これだと何らかの操作でマークが再設定されると戻れなくなる。 bm.el等でブックマークするのも何だか手間だ。 そんなときに重宝するのが、この goto-chg.el コーディング中、何も考えずにほかの箇所に行って、戻りたくなったら (goto-last-change)。 地味に便利。 my-設定 (require 'goto-chg) (global-set-key "\C-xj" 'goto-last-change) (global-set-key "\C-xJ" 'goto-last-change-reverse)
accelerate.el 1つ目は、 EmacsWiki: accelerate.el。 previous-line等がバインドされたキーを押し続けることで、移動量が加速していくlisp ↓のように移動量のリストを渡すことで、徐々に加速することもできる。 (accelerate previous-line '(1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 3)) しかし、何故か backward-char と forward-char は対応していないらしい。 吾輩の設定はこんな感じ。 (require 'accelerate) (accelerate previous-line '(1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 3 3)) (accelerate next-line '(
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く