bazelbuild / emacs-bazel-mode Goto Github PK
View Code? Open in Web Editor NEWEmacs mode for Bazel
Home Page: https://bazel.build
License: Apache License 2.0
Emacs mode for Bazel
Home Page: https://bazel.build
License: Apache License 2.0
Can we have this package release to MELPA so it can be easily installed?
I've never done it myself, but I'd be happy to help if there is anything I can do to make it happen.
Some build files that are written for third party libraries don't get bazel mode enabled. I needed to add:
(add-to-list 'auto-mode-alist
'("\\.bazel" . bazel-build-mode))
to my configuration to enable bazel mode for those files.
Upon browsing the code, I've noticed the following works as well.
(add-to-list 'auto-mode-alist
;; https://docs.bazel.build/versions/3.0.0/build-ref.html#packages
(cons (rx (or "/BUILD" ".bazel") eos) #'bazel-build-mode))
Therefore I've attached a PR that addresses this issue.
Would it be possible to add this directly to the mode?
The README.md file should probably include:
Thanks for putting effort into this project! It's looking pretty good so far.
One thing I've noticed as of late is that bazel-mode
does not seem to be aware triple-quoted strings like python-mode is, resulting in syntax highlighting that looks like this:
This is most apparent when you take a look at complexrule
declarations, which can easily become oddly highlighted.
First of all thank you for this. It has been working great for me to run bazel test
from Emacs.
I was wondering if this package could support a command like bazel-configure
that would run bazel configure
for the current directory or workspace root.
Alternatively if we could have generic bazel-command
that can take the command as an arg that would work as well.
It'd be great to have formatting on save!
First I want to say, thank you for writing this. It is a great enhancement over compilation-mode in a bazel environment. The missing feature I run into, however, is being able to pass arguments. Sometimes I need to pass args to bazel itself, like --compilation_mode=dbg
, or --run_under=gdbserver
, and sometimes I need to pass arguments to a run target, like bazel run //my/target -- some args
. If you try to pass either of these in at the target prompt, this mode tries to escape the spaces and make them part of the target.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.