Function: bazel-vendor-mode

bazel-vendor-mode is an interactive and natively compiled function defined in bazel.el.

Signature

(bazel-vendor-mode)

Documentation

Major mode for editing VENDOR.bazel files.

In addition to any hooks its parent mode bazel-mode might have run, this mode runs the hook bazel-vendor-mode-hook, as the final or penultimate step during initialization.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
;;;###autoload
(define-derived-mode bazel-vendor-mode bazel-mode "VENDOR.bazel"
  "Major mode for editing VENDOR.bazel files."
  ;; Buildifier doesn’t have special support for VENDOR.bazel files yet.
  (setq bazel--buildifier-type 'default)
  ;; In VENDOR.bazel files, we don’t have function definitions.  Instead, treat
  ;; directives (= Python statements) as functions.
  (setq-local beginning-of-defun-function #'python-nav-beginning-of-statement)
  (setq-local end-of-defun-function #'python-nav-end-of-statement)
  nil)