Created
February 26, 2016 15:55
-
-
Save kuanyui/6227da01d58f8148f6e1 to your computer and use it in GitHub Desktop.
如何開個temp buffer在目前window下方顯示你要顯示的鬼東西
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq hexo-help-buffer "*hexo-help*") | |
(defun hexo-command-open-fixed-help-window () | |
(interactive) | |
(select-window (split-window-below -6)) | |
(if (not (get-buffer hexo-help-buffer)) | |
(temp-buffer-window-setup hexo-help-buffer)) | |
(switch-to-buffer hexo-help-buffer) | |
(let ((inhibit-read-only t)) | |
(insert (hexo-get-help-string))) | |
(fit-frame-to-buffer)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment