mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-21 03:55:27 +00:00
figleaf.el: add code to auto-enable the annotation mode for all source files
This commit is contained in:
parent
56df1a48f4
commit
f0b7cf4bdf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user