Emacs: focus on grep/help/occur windows

master
Pierre Neidhardt 2014-02-21 20:43:40 +01:00
parent a60dee36b7
commit ecd9d17ecc
1 changed files with 5 additions and 0 deletions

View File

@ -280,6 +280,11 @@
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)
;; Alternate focus.
(add-hook 'occur-hook (lambda () (pop-to-buffer occur-buf)))
(add-hook 'help-mode-hook (lambda () (pop-to-buffer (get-buffer "*Help*"))))
(add-hook 'grep-mode-hook (lambda () (pop-to-buffer (get-buffer "*grep*"))))
;; Disable prompt (but leave warning) on git symlink.
(setq vc-follow-symlinks t)