summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-10-29 06:41:16 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-10-29 06:41:16 +0200
commitdc1dbf31c37aaad6599fa10a81c769e89632b8ad (patch)
tree9667c82daf8fa00e5c7d83d6a81cec6a27bd3c25 /helm.el
parent2e29f0f2b9373b08b1408dd7c507fe4c3a51ce2b (diff)
Change face of candidate number when suspending.
* helm.el (helm-candidate-number-suspended): New face. (helm-toggle-suspend-update): Update ML. (helm-show-candidate-number): Use new face.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el16
1 files changed, 13 insertions, 3 deletions
diff --git a/helm.el b/helm.el
index 1b776cb0..8fd52d28 100644
--- a/helm.el
+++ b/helm.el
@@ -663,7 +663,13 @@ so it have only effect when `helm-always-two-windows' is non-nil."
(defface helm-candidate-number
'((((background dark)) :background "Yellow" :foreground "black")
(((background light)) :background "#faffb5" :foreground "black"))
- "Face for candidate number in mode-line." :group 'helm-faces)
+ "Face for candidate number in mode-line."
+ :group 'helm-faces)
+
+(defface helm-candidate-number-suspended
+ '((t (:inherit helm-candidate-number :inverse-video t)))
+ "Face for candidate number in mode-line when helm is suspended."
+ :group 'helm-faces)
(defface helm-selection
'((((background dark)) :background "ForestGreen"
@@ -2508,7 +2514,9 @@ This can be useful for example for quietly writing a complex regexp."
(setq helm-pattern ""))
(message (if helm-suspend-update-flag
"Helm update suspended!"
- "Helm update re-enabled!"))))
+ "Helm update re-enabled!"))
+ (helm-aif (helm-get-current-source)
+ (with-helm-buffer (helm-display-mode-line it t)))))
(put 'helm-toggle-suspend-update 'helm-only t)
(defun helm--advice-tramp-read-passwd (old--fn &rest args)
@@ -3827,7 +3835,9 @@ it is \"Candidate\(s\)\" by default."
(format "[%s %s]"
(helm-get-candidate-number 'in-current-source)
cand-name))
- 'face 'helm-candidate-number)))))
+ 'face (if helm-suspend-update-flag
+ 'helm-candidate-number-suspended
+ 'helm-candidate-number))))))
(cl-defun helm-move-selection-common (&key where direction (follow t))
"Move the selection marker to a new position.