From: Peng Li Date: Mon, 11 Jul 2016 04:02:00 +0000 (+0800) Subject: emacs - Info mode, using defadvice instead of add-hook X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=9f6e82fd3c2bf71d338d4f8d7c0fbe9744098b2c;p=dotfiles.git emacs - Info mode, using defadvice instead of add-hook --- 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)