-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] New customizations: helm-swoop-flash-region-function
#146
Conversation
b20b5e6
to
668b1ef
Compare
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, PR! Please check those comments.
helm-swoop.el
Outdated
@@ -524,7 +535,7 @@ If $linum is number, lines are separated by $linum" | |||
(when (or (and (and (featurep 'migemo) helm-migemo-mode) | |||
(migemo-forward $regex nil t)) | |||
(re-search-forward $regex nil t)) | |||
(helm-swoop-flash-word (match-beginning 0) (match-end 0)) | |||
(helm-swoop-do-flash-region (match-beginning 0) (match-end 0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(funcall helm-swoop-flash-region-function (match-beginning 0) (match-end 0))
instead of define helm-swoop-do-flash-region
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not a small util function? At least it looks meaningful than direct calling funcall
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increasing small utility functions requires a lot of consideration.
For example, all functions declared with defsubst
seem to be prefixed with helm-swoop--
, but how about renaming them?
And In many cases, I think do
is unnecessary.
668b1ef
to
f80b776
Compare
f80b776
to
26a3c2c
Compare
@conao3 OK now. |
No description provided.