conf-emacs/stuff/my-fixme.el

15 lines
325 B
EmacsLisp
Raw Permalink Normal View History

2012-10-13 19:35:28 +00:00
(defun insert-fixme (&optional msg)
(interactive "sFixme: ")
(save-excursion
(end-of-line)
(when (not (looking-back "^\\s *"))
(insert " "))
(setq start (point))
(insert "FIXME")
(when (not (string-equal msg ""))
(insert ": " msg))
(comment-region start (point))))
(provide 'my-fixme)