An Emacs extension/mode for interacting with Bazel workspaces.
With a Bazel managed file open, bazel-workspace
gives you:
C-c C-c t run bazel test
bazel-workspace
attempts to find an appropriate target to run for the
open buffer.
This extension lives in a git repo. Download it first with
git clone https://github.com/andyscott/emacs-bazel-workspace ~/.emacs.d/bazel-workspace
then do this if you use use-package
(use-package bazel-workspace
:load-path "~/.emacs.d/bazel-workspace")
or this if you don’t.
(add-to-list 'load-path "~/.emacs.d/bazel-workspace")
(require 'bazel-workspace)