Skip to content

Commit

Permalink
Allow displaying help buffer in other window (#1493).
Browse files Browse the repository at this point in the history
* helm-lib.el (helm-help-full-frame): New user var.
(helm-help-internal): Use it.
  • Loading branch information
thierryvolpiatto committed May 5, 2016
1 parent cd34561 commit d8e6c4f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion helm-lib.el
Expand Up @@ -54,6 +54,15 @@ If you prefer scrolling line by line, set this value to 1."
:group 'helm
:type 'integer)

(defcustom helm-help-full-frame t
"Display help window in full frame when non nil.
Even when `nil' probably the same result (full frame)
can be reach by tweaking `display-buffer-alist' but it is
much more convenient to use a simple boolean value here."
:type 'boolean
:group 'helm-help)


;;; Internal vars
;;
Expand Down Expand Up @@ -184,7 +193,7 @@ text to be displayed in BUFNAME."
(setq helm-suspend-update-flag t)
(set-buffer (get-buffer-create bufname))
(switch-to-buffer bufname)
(delete-other-windows)
(when helm-help-full-frame (delete-other-windows))
(delete-region (point-min) (point-max))
(org-mode)
(save-excursion
Expand Down

0 comments on commit d8e6c4f

Please sign in to comment.