From 9f6e82fd3c2bf71d338d4f8d7c0fbe9744098b2c Mon Sep 17 00:00:00 2001 From: Peng Li Date: Mon, 11 Jul 2016 12:02:00 +0800 Subject: [PATCH] emacs - Info mode, using defadvice instead of add-hook --- emacs.d/config.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index 17e4e68..aebc41c 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1742,12 +1742,13 @@ Play Go in Emacs, gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f (unless (> (length (window-list)) 1) (split-window-right)) (other-window 1) - (info))) + ;; (info) + )) - (global-set-key (kbd "C-h i") 'sd/info-mode) + ;; (global-set-key (kbd "C-h i") 'sd/info-mode) ;; open Info buffer in other window instead of current window - (defadvice Info (before my-info activate) + (defadvice info (before my-info (&optional file buf) activate) (sd/info-mode)) (defadvice Info-exit (after my-info-exit activate) -- 2.11.0