~niklaseklund/elbazel

A Bazel dispatcher for Emacs

d2d0fc3 Setup CI build system

5 months ago

b50611b Add markdown README

5 months ago

Build

#Introduction

Elbazel is a text-based interface to bazel. It build's on top of magit's user interface.

#Configuration

#Use-package example

Configuration for the elbazel package.

(use-package elbazel
  :commands elbazel-dispatch
  :config
  (add-hook 'compilation-finish-functions #'elbazel-unbox-sandbox-paths-h))

#Remote support

The elbazel package supports Connection Local Variables which allows the user to change the variables used by elbazel when running on a remote host.

(connection-local-set-profile-variables
 'remote-elbazel
 '((elbazel-command . "/home/user/.local/bin/bazel")
   (elbazel-cache-dir . "/tmp/bazel_cache")
   (elbazel-buildfile-name . "BAZEL.build")
   (elbazel-search-with-rg . t)))

(connection-local-set-profiles
 '(:application tramp :protocol "ssh") 'remote-elbazel)

#Commands

Use the command elbazel-dispatch to launch the dispatcher.

#Credits

This package wouldn't have been possible without the awesome transient package.