とりあえずemacsとwlを起動。
$ emacs -f wl
M-x で describe-variable を起動。編集したい変数を入力。
M-x describe-variable Describe variable: wl-draft-send-confirm-type
新しいバッファに以下のようなメッセージが流れる。wl-draft-send-confirm-typeの現在の値はy-or-n-pであることがわかる。customizeにアンダーラインが惹かれている。これにカーソルを合わせてenterで編集画面を出せる。
wl-draft-send-confirm-type is a variable defined in `wl-vars.el'. Its value is y-or-n-p Documentation: *Confirmation type or function to use when send a message. You can customize this variable.
編集画面が以下。[Value Menu] を押せば設定可能な値を見ることが出来る。
Editing a setting changes only the text in this buffer. To apply your changes, use the Save or Set buttons. Saving a change normally works by editing your init file. For details, see [Saving Customizations] in the [Emacs manual]. Operate on all settings in this buffer that are not marked HIDDEN: [Set for current session] [Save for future sessions] [Undo edits] [Reset to saved] [Erase customizations] [Exit] Wl Draft Send Confirm Type: [Hide Value] [Value Menu] y-or-n-p Ask user a "y or n" question. Return t if answer is "y". [More] [State]: STANDARD. Confirmation type or function to use when send a message. Groups: [Wl Draft]
設定可能な値は下のようになっている。
Available choices: 0 = y or n with scroll (j/k) 1 = y or n with scroll (SPC/BS) 2 = y-or-n-p 3 = yes-or-no-p 4 = Other function C-g = Quit
古いバージョンと同じ挙動にするには0を選択する。ミニバッファに以下のようなメッセージになる。
Choice: 0 To install your edits, invoke [State] and choose the Set operation
言われたとおり [State] を押すと以下のようになる。
Available choices: 1 0 = Set for Current Session 1 = Save for Future Sessions 2 = Undo Edits 4 = Erase Customization 7 = Add Comment : = Show Saved Lisp Expression C-g = Quit
今回は1を選んで設定を永続的なものにする。
Operation on Wl Draft Send Confirm Type: 1
以下の内容が~/.emacs.d/init.el に書き込まれる。この箇所を.wlに移動させてもOK
(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(wl-draft-send-confirm-type (quote scroll-by-j/k))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )
これで送信時の確認にスクロール機能が加わる。