You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cool thing! Coming from vim, I'm used to having the functionality of evil-numbers and speeddating combined in one key mapping.
I achieved it like this:
(defunmy-increment-at-ptnil"Increment number or date (speeddating) at point"
(interactive)
(condition-casenil
(speeddating-increase 1)
(error (evil-numbers/inc-at-pt 1))))
(defunmy-decrease-at-ptnil"Decrease number or date (speeddating) at point"
(interactive)
(condition-casenil
(speeddating-decrease 1)
(error (evil-numbers/dec-at-pt 1))))
(evil-define-key 'normal'global"C-c +"'my-increment-at-pt)
(evil-define-key 'normal'global"C-c -"'my-decrease-at-pt)
Maybe you want to add the snippet to the README (or even integrate this combination in the source, if that dependency on speeddating makes sense?).
The text was updated successfully, but these errors were encountered:
Cool thing! Coming from vim, I'm used to having the functionality of evil-numbers and speeddating combined in one key mapping.
I achieved it like this:
Maybe you want to add the snippet to the README (or even integrate this combination in the source, if that dependency on speeddating makes sense?).
The text was updated successfully, but these errors were encountered: