blob: bf80f58eeb5edde061f00a86ef5071f376cb4e30 [file] [log] [blame]
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((python-mode .
((python-indent-offset . 4)
;; Add a python-mode hook that will detect if the
;; current buffer is inside of Chromite and, if so,
;; offer the direct executable wrapper of the current
;; file when running M-x `compile`. This is useful for
;; unittests, in particular, because Emacs will
;; automatically highlight unittest failure line
;; numbers so that they may be jumped to.
(eval if (file-exists-p
(let ((d (dir-locals-find-file ".")))
(if (stringp d) d (car d))))
(set (make-local-variable 'compile-command)
(if buffer-file-name
(file-name-sans-extension buffer-file-name))))))))