X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=11a19dda2eedc4e71371397d5346e34e70343809;hb=d56e8d77694808eb2e861a5040d307af1a6fd3ae;hp=f2325bde32459ee26bb58215e5adaa47a2016f71;hpb=6ee27ef75cc00f33e2420e79cb29eb759c68bab9;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index f2325bd..11a19dd 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1725,6 +1725,25 @@ Play Go in Emacs, gnugo xpm refert [[https://github.com/okanotor/dotemacs/blob/f ** TODO bookmark ** TODO Calendar +** TODO advice info +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (defun sd/info-mode () + (interactive) + (unless (equal major-mode 'Info-mode) + (unless (> (length (window-list)) 1) + (split-window-right)) + (other-window 1) + (info))) + + (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) + (sd/info-mode)) + + (defadvice Info-exit (after my-info-exit activate) + (sd/delete-current-window)) +#+END_SRC * Programming