New answers tagged

1

Try this: (defun ph/switch-inline-c-comments-to-block (beg end) "Change whole-line inline C comments between BEG and END to block comments. If the region contains any lines which are not whole-line inline C comments then the behavior of this command is undefined." (interactive "*r") (narrow-to-region beg end) (unwind-protect ...


1

This function should cover the first cases (comment delimiter followed by " TODO: ") (defun insert-todo () (interactive "*") (insert comment-start " TODO: ")) This one covers the org-mode case: (defun org-insert-todo () (interactive "*") (insert "** TODO ")) You could bind them to a key combination ...


Top 50 recent answers are included