How easy would it be to add a comment selector?

York Zhao gtdplatform at gmail.com
Tue Nov 8 00:24:59 CET 2011


>    (evil-define-text-object evil-a-comment ()
>      "Select a comment."
>      (list (evil-comment-beginning) (evil-comment-end)))
>
>    (define-key evil-outer-text-objects-map "c" 'evil-a-comment)

This works for emacs lisp comments but not for C/C++ comments at all, it would
nice if this can be fixed.


York



More information about the implementations-list mailing list