From 9905d9ff6c590e24dfe473302556c75230b5d4c2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 17 Jul 2018 15:16:52 -0700 Subject: [emacs] BUILD files are python (at work) --- emacs.d/config/fcuny-prog.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs.d/config/fcuny-prog.el b/emacs.d/config/fcuny-prog.el index 8124952..c7d267c 100644 --- a/emacs.d/config/fcuny-prog.el +++ b/emacs.d/config/fcuny-prog.el @@ -28,7 +28,10 @@ (pants-extra-args "-q") :bind (("C-c b" . pants-find-build-file) ("C-c r" . pants-run-binary) - ("C-c t" . pants-run-test))) + ("C-c t" . pants-run-test)) + :init + (if (fc/check-work-machine-p) + (add-to-list 'auto-mode-alist '("BUILD" . python-mode)))) (use-package make-mode :ensure t -- cgit 1.4.1