2012-11-01から1ヶ月間の記事一覧

ライブラリを遅延ロードするマクロ

特徴 引数一つで動く 複数の関数を同時に autoload にできる ライブラリのロード後に実行する式を書ける(eval-after-load を使う) ライブラリのパスを返す すでに autoload として定義されていれば、重複して定義しない quote して渡す(趣味) 基本的には…

term-mode で引数ありで任意のコマンドを実行

M-x term とかだと引数付けられないので。 (require 'term nil t) (defvar term-shell-command-history nil "History for `term-shell-command'") (defun term-shell-command (command &optional buffer-or-name) "Run COMMAND in terminal emulator. If BUF…