General minor refactor & docstring fixes

This commit is contained in:
Henrik Lissner 2018-05-14 20:55:55 +02:00
parent 67dab98859
commit bb88411cc9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
9 changed files with 27 additions and 28 deletions

View file

@ -365,8 +365,8 @@ the new algorithm is confusing, like in python or ruby."
evil-visualstar/begin-search-forward
evil-visualstar/begin-search-backward)
:init
(map! :v "*" #'evil-visualstar/begin-search-forward
:v "#" #'evil-visualstar/begin-search-backward)
(map! :m [remap evil-ex-search-word-forward] #'evil-visualstar/begin-search-forward
:m [remap evil-ex-search-word-backward] #'evil-visualstar/begin-search-backward)
:config
(global-evil-visualstar-mode 1))

View file

@ -31,11 +31,11 @@
:documentation +lookup-documentation-functions
:file +lookup-file-functions)
prop)
for fn = (or (command-remapping fn) fn)
for cmd = (or (command-remapping fn) fn)
if (condition-case e
(or (if (commandp fn)
(call-interactively fn)
(funcall fn identifier))
(or (if (commandp cmd)
(call-interactively cmd)
(funcall cmd identifier))
(/= (point-marker) origin))
('error (ignore (message "%s" e))))
return it))