Datenterrorist
Heute: Kompiliertes Kanninchen aus der Datenbank _

.:: TODO buffer in Emacs ::.

I wanted to have a buffer when pressing F4 that recursively lists all TODO and FIXME comments in a directory together with the filenames. Here is a simple solution for that:

(defun balle-grep-todos-in-dir (dir &optional not-recursive)
"Grep recursively for TODO comments in the given directory"
(interactive "Ddirectory:")
(let ((recur "-r"))
(if not-recursive
(setq recur "")
)
(grep (concat "grep -nH -I " recur " -E \"[\\#\\/\\-\\;\\*]\s*TODO|FIXME|XXX:?\" " dir " 2>/dev/null"))
)
(enlarge-window 7)
)
(global-set-key [f4] 'balle-grep-todos-in-dir)

posted at 21:54:20 on 06/27/11 by balle - Category: Emacs

.:: Comments ::.

Mens Danny Trevathan Jersey wrote:

Hurrah! In the end I got a website from where
I know how to truly take helpful facts concerning my study and knowledge.
12/14/14 05:51:04

Men Roddy White Faclons Nike Jersey wrote:

I was able to find good information from your blog articles.
01/06/15 19:34:12

Women Percy Harvin Seahawks Nike Jersey wrote:

Pretty section of content. I just stumbled upon your weblog
and in accession capital to assert that I get in fact enjoyed account your blog posts.
Any way I will be subscribing to your feeds and even I achievement you access consistently
fast.
01/11/15 10:41:48

Add Comments