diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-07-16 12:18:39 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-07-16 12:18:39 +0200 |
commit | 0d0a9d238850ce675d894b250a70074b5bda0c11 (patch) | |
tree | 4e1ebb5d1fd389a901fe941792723d1898ebe908 | |
parent | 75db7c3be86c8c35570bed19edfde2b029590cfd (diff) |
Use a separate frame by default for completion
* helm-elisp.el (helm-show-completion-display-function): Do it and fix docstring.
-rw-r--r-- | helm-elisp.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/helm-elisp.el b/helm-elisp.el index e2499ab4..480561ae 100644 --- a/helm-elisp.el +++ b/helm-elisp.el @@ -95,13 +95,17 @@ fuzzy completion is not available in `completion-at-point'." :type '(repeat (choice symbol))) (defcustom helm-show-completion-display-function - #'helm-show-completion-default-display-function + (if (window-system) + #'helm-display-buffer-in-own-frame + #'helm-show-completion-default-display-function) "The function used to display helm completion buffer. This function is used by `with-helm-show-completion', when nil fallback to `helm-default-display-buffer'. -If you want to have completion displayed in a separate frame, use -`helm-display-buffer-in-own-frame' as value." + +Default is to use a separate frame on `window-system' and +`helm-show-completion-default-display-function' on non graphic +display." :group 'helm-elisp :type 'function) |