From: Peng Li Date: Sun, 10 Jul 2016 14:54:42 +0000 (+0800) Subject: emacs - Info mode X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=d56e8d77694808eb2e861a5040d307af1a6fd3ae;p=dotfiles.git emacs - Info mode --- 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