summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2019-03-26 06:15:29 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2019-03-26 06:15:29 +0100
commit4267c7ecf100e6afa544199dd6ed4098e4ee552b (patch)
tree91f18730e8fe76e94a2515de4269400dac5ef39a /helm.el
parent1050b7650099947c72186116443f5c14c46e9f81 (diff)
Make helm-truncate-lines a user var
to allow setting truncate-lines at helm startup. * helm.el (helm-truncate-lines): Now a new user var.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/helm.el b/helm.el
index 32cde471..eea9e350 100644
--- a/helm.el
+++ b/helm.el
@@ -800,6 +800,12 @@ Fallback to 100 when nil."
"The function to use to set face of fake cursor in header-line."
:group 'helm
:type 'function)
+
+(defcustom helm-truncate-lines nil
+ "The value of `truncate-lines' when helm startup.
+You can toggle later `truncate-lines' with \\<helm-map>\\[helm-toggle-truncate-line]."
+ :group 'helm
+ :type 'boolean)
;;; Faces
;;
@@ -1421,8 +1427,6 @@ Note that if also :input is specified as `helm' arg, it will take
precedence on :default.")
(defvar helm--temp-hooks nil
"Store temporary hooks added by `with-helm-temp-hook'.")
-(defvar helm-truncate-lines nil
- "[Internal] Don't set this globally, it is used as a local var.")
(defvar helm--prompt nil)
(defvar helm--file-completion-sources
'("Find Files" "Read File Name")