Fix helm-faces to select face under point

This commit is contained in:
Muneeb Shaikh 2015-11-08 11:48:36 +05:30 committed by Eivind Fonn
parent 17f6225c5d
commit b5dbcf5027

View file

@ -627,10 +627,11 @@ Removes the automatic guessing of the initial value based on thing at point. "
"Describe face."
(interactive)
(require 'helm-elisp)
(let ((default (thing-at-point 'symbol)))
(helm :sources (list (helm-def-source--emacs-faces default))
:buffer "*helm faces*"
:preselect (and default (concat "\\_<" (regexp-quote default) "\\_>")))))
(let ((default (face-at-point)))
(helm :sources (helm-def-source--emacs-faces (if default
(symbol-name default)
"default"))
:buffer "*helm faces*")))
;; use helm by default for M-x
(unless (configuration-layer/package-usedp 'smex)