Skip to content

Instantly share code, notes, and snippets.

@kuanyui
Created February 26, 2016 15:55
Show Gist options
  • Save kuanyui/6227da01d58f8148f6e1 to your computer and use it in GitHub Desktop.
Save kuanyui/6227da01d58f8148f6e1 to your computer and use it in GitHub Desktop.
如何開個temp buffer在目前window下方顯示你要顯示的鬼東西
(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