From d8e6c4fc343285c0dde5decf90cf72560b536794 Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Thu, 5 May 2016 06:19:31 +0200 Subject: [PATCH] Allow displaying help buffer in other window (#1493). * helm-lib.el (helm-help-full-frame): New user var. (helm-help-internal): Use it. --- helm-lib.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/helm-lib.el b/helm-lib.el index 5a7c7cd2d..c54b491f1 100644 --- a/helm-lib.el +++ b/helm-lib.el @@ -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 ;; @@ -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