今日やったemacs周りの設定 - monky.elとpopwin.el

1. monkyのキーバインド

emacsmercurialを操作するmonkyというelがあって使ってます。結構便利

emacsからのmercurialの操作にmonkyを使ってみた
http://d.hatena.ne.jp/yuheiomori0718/20111104/1320415987

設定
(global-set-key (kbd "M-G") 'monky-status)

M-Gにキーを設定してたんですが、diredでそのキーはdired-goto-subdirに割り当てられてて、そっちが優先されていたので、以下の設定も追加しました

(define-key dired-mode-map (kbd "M-G") 'monky-status)

2. popwin.el導入

まだ全然使い込んでないですが、とりあえずHelpのバッファがpopupするようになっただけでもなんか気分がいいです

;;(auto-install-from-url "https://raw.github.com/m2ym/popwin-el/master/popwin.el")
(require 'popwin)
(setq display-buffer-function 'popwin:display-buffer)
(global-set-key (kbd "C-x C-p") popwin:keymap)

popwin:keymapを設定することによってC-x C-p mでMessagesバッファがpopupしたりします。面白いです
まだいろんな機能があるんで使い込んでいきたいです


以下はpopwin:keymap

Key Command
b, C-b popwin:popup-buffer
M-b popwin:popup-buffer-tail
o, C-o popwin:display-buffer
p, C-p popwin:display-last-buffer
f, C-f popwin:find-file
M-f popwin:find-file-tail
s, C-s popwin:select-popup-window
M-s popwin:stick-popup-window
0 popwin:close-popup-window
m, C-m popwin:messages