From 8161d90999fb658818aa24d43fb1a7dbf6feb183 Mon Sep 17 00:00:00 2001 From: lxsameer Date: Sun, 5 Jun 2011 01:16:15 +0430 Subject: [PATCH] todo finder added --- src/plugins/django.el | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/plugins/django.el b/src/plugins/django.el index f96bcc1..604091d 100644 --- a/src/plugins/django.el +++ b/src/plugins/django.el @@ -196,9 +196,22 @@ binding for Kuso IDE django plugin" ) -(defun kuso/get-todo () +(defun django/get-todo () "Get a list of TODO entries from the project source tree" (interactive) + (let (command gbuffer commandp) + (if (string= project-path "") + (get-project-path) + ) + (setq command (concat "grep \"# TODO:\" " project-path " -Rn -T --color")) + (message command) + (setq gbuffer (get-buffer-create "*Grep*")) + (ansi-color-for-comint-mode-on) + (switch-to-buffer gbuffer) + (add-hook 'after-change-functions 'buffer-change-colorizing t t) + (setq commandp (start-process-shell-command "grep" gbuffer command)) + + ) )