From: Brian Warner Date: Thu, 18 Jan 2007 08:00:11 +0000 (-0700) Subject: figleaf.el: add code to auto-enable the annotation mode for all source files X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~356 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/frontends/%3C?a=commitdiff_plain;h=f0b7cf4bdf1223ffdd5320e7a6d0f64a4b87a990;p=tahoe-lafs%2Ftahoe-lafs.git figleaf.el: add code to auto-enable the annotation mode for all source files --- 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)