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
when evil-org is used, evil-digit-argument-or-evil-org-beginning-of-line is a function alias for an anonymous lambda. When I attempt to add it to evil-mc-custom-known-commands, it doesn't appear to work. Is there another way to add it?
The text was updated successfully, but these errors were encountered:
(evil-define-motion org-beginning-of-line-or-digit-argument ()
"Move the cursor to the beginning of the current line.This function passes its command to `digit-argument' (usually a 0)if it is not the first event.":type exclusive
(cond
(current-prefix-arg
(setq this-command #'digit-argument)
(call-interactively#'digit-argument))
(t
(setq this-command #'org-beginning-of-line)
(call-interactively#'org-beginning-of-line))))
(evil-define-minor-mode-key 'motion'evil-org-mode"0"#'org-beginning-of-line-or-digit-argument)
(add-to-list'evil-mc-custom-known-commands
'(org-beginning-of-line-or-digit-argument
(:default. evil-mc-execute-default-call)
(visual . evil-mc-execute-visual-call)))
This doesn't work for me. Setting this up, then creating a text buffer in org-mode with:
foo
foo
And using evil-mc to create cursors on each foo (w/ the cursor at the end of the word) then pressing 0 only moves the first cursor to the beginning of the line
when
evil-org
is used,evil-digit-argument-or-evil-org-beginning-of-line
is a function alias for an anonymous lambda. When I attempt to add it toevil-mc-custom-known-commands
, it doesn't appear to work. Is there another way to add it?The text was updated successfully, but these errors were encountered: