support for doxygen todos
Related: #118
Please add support for `magit-todos-keyword-prefix`, I would like support for doxygen comments :(.
```cpp
/// @todo: Remove from this file.
struct SourceRange {
/// \todo use the lexer's end_{line,column}
int begLine{}, begCol{}, endLine{}, endCol{};
};
```
both styles above for example.
in the meantime:
```elisp
(use-package magit-todos
:after magit
:config
(magit-todos-mode 1)
;; Generate all keyword variants (@, \, upper/lowercase)
(setq my/magit-todos/doxygen-keywords
(apply 'append
(mapcar (lambda (kw)
(list (concat "@" kw)
(concat "@" (downcase kw))
(concat "\\" kw)
(concat "\\" (downcase kw))))
'("TODO" "FIXME" "HACK" "NOTE" "BUG" "XXX" "TEMP" "KLUDGE"))))
(setq magit-todos-keywords-list
(delete-dups (append my/magit-todos/doxygen-keywords magit-todos-keywords-list))))
```
1 条评论