9 Jul 2012 02:14
Confused by what command is "dot repeatable"
York Zhao <gtdplatform <at> gmail.com>
2012-07-09 00:14:22 GMT
2012-07-09 00:14:22 GMT
Hi, I still find myself confused by the "dot repeating" in Evil. I have many commands, some of them are "automatically" dot repeatable but others are not. For example, I have these two commands: (defun foo () (interactive) ... (kill-region beg end) ... (insert ...) ...) (defun bar () (interactive) ... (insert ...)) I don't see any essential difference between these two commands, except that `foo' was being executed in org-mode while `bar' in c++-mode. And I have no idea why command "foo" is dot repeatable but "bar" is not. I had tried using (evil-declare-change-repeat 'bar)(Continue reading)
RSS Feed