From d56e8d77694808eb2e861a5040d307af1a6fd3ae Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 10 Jul 2016 22:54:42 +0800 Subject: [PATCH] emacs - Info mode --- emacs.d/config.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index 7927143..11a19dd 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1736,9 +1736,15 @@ Play Go in Emacs, gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f (info))) (global-set-key (kbd "C-h i") 'sd/info-mode) - ;; (add-hook 'Info-mode-hook (lambda () - ;; (define-key Info-mode-map "q" ))) + + ;; open Info buffer in other window instead of current window + (defadvice Info (before my-info activate) + (sd/info-mode)) + + (defadvice Info-exit (after my-info-exit activate) + (sd/delete-current-window)) #+END_SRC + * Programming ** Languages -- 2.11.0