figleaf.el: add code to auto-enable the annotation mode for all source files

This commit is contained in:
Brian Warner 2007-01-18 01:00:11 -07:00
parent 56df1a48f4
commit f0b7cf4bdf

View File

@ -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)