From f0b7cf4bdf1223ffdd5320e7a6d0f64a4b87a990 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Thu, 18 Jan 2007 01:00:11 -0700
Subject: [PATCH] figleaf.el: add code to auto-enable the annotation mode for
 all source files

---
 misc/figleaf.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/misc/figleaf.el b/misc/figleaf.el
index 6a4323b8..fef42e08 100644
--- a/misc/figleaf.el
+++ b/misc/figleaf.el
@@ -132,3 +132,9 @@
   () ; forms run on mode entry/exit
 )
 
+(defun maybe-enable-figleaf-mode ()
+  (if (string-match "/src/allmydata/" (buffer-file-name))
+      (figleaf-annotation-minor-mode t)
+    ))
+
+(add-hook 'python-mode-hook 'maybe-enable-figleaf-mode)
-- 
2.45.2