huseyinyilmaz/flymake-python — comment on commit 470449b695a69b7fe26f8b9a8714e345399dd02e
File:  line 0
By huseyinyilmaz:

Actually You also has this one on README.md file but did not add it to dotemacs file. Looks like this hook enables flymake for current buffer. Basicly when you press C-X C-F , choose a file and press enter. it will enable flymake for that buffer. here is the code for this function

(defun flymake-find-file-hook ()
;;+(when flymake-start-syntax-check-on-find-file
;;+ (flymake-log 3 "starting syntax check on file open")
;;+ (flymake-start-syntax-check)
;;+)
(when (and (not (local-variable-p 'flymake-mode (current-buffer)))
(flymake-can-syntax-check-file buffer-file-name))
(flymake-mode)
(flymake-log 3 "automatically turned ON flymake mode")))