Browse Source

Update counsel-describe-symbol

master
10sr 4 years ago
parent
commit
ddc42514fc
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      emacs.el

+ 5
- 5
emacs.el View File

@@ -2513,12 +2513,12 @@ Any output will be written to current buffer."
(defun my-counsel-describe-symbol () (defun my-counsel-describe-symbol ()
"Forwaord to `describe-symbol'." "Forwaord to `describe-symbol'."
(interactive) (interactive)
(eval-and-compile (require 'help-mode)) ;; describe-symbol-backends
(ivy-read "Describe symbol: " obarray (ivy-read "Describe symbol: " obarray
:predicate (lambda (sym)
(or (fboundp sym)
(boundp sym)
(facep sym)
(symbol-plist sym)))
;; From describe-symbol definition
:predicate (lambda (vv)
(cl-some (lambda (x) (funcall (nth 1 x) vv))
describe-symbol-backends))
:require-match t :require-match t
:history 'counsel-describe-symbol-history :history 'counsel-describe-symbol-history
:keymap counsel-describe-map :keymap counsel-describe-map


Loading…
Cancel
Save