Created
March 1, 2019 18:12
-
-
Save tatut/69ee06bd0263a0eeab9da6dfb2d6035e to your computer and use it in GitHub Desktop.
TODO/FIXME search in project (for deadgrep)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun deadgrep-todo-fixme-buffers () | |
| (let ((buf (get-buffer-create "*deadgrep-todo-fixme-buffers*"))) | |
| (switch-to-buffer buf) | |
| (setq deadgrep--search-type 'regexp) | |
| (list buf))) | |
| (defun deadgrep-todo-fixme () | |
| (interactive) | |
| (advice-add 'deadgrep--buffers :override #'deadgrep-todo-fixme-buffers) | |
| (deadgrep "(TODO)|(FIXME)") | |
| (advice-remove 'deadgrep--buffers #'deadgrep-todo-fixme-buffers) | |
| (kill-buffer "*deadgrep-todo-fixme-buffers*")) | |
| (global-set-key (kbd "C-c t") 'deadgrep-todo-fixme) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment