Fix helm-faces to select face under point
This commit is contained in:
parent
17f6225c5d
commit
b5dbcf5027
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue