Skip to content

bobrofon/soong-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emacs major mode for editing Soong build files

https://melpa.org/packages/soong-mode-badge.svg

The Soong build system

Supported features

  • partially syntax highlighting (constants, some builtin targets, some builtin attributes)
  • single-line and multi-line comments
  • auto-formatting
  • auto-indentation
  • context-free completion-at-point (using static dictionary)

Installation

From sources using quelpa and use-package

;; Install quelpa from elpa archive.
(use-package quelpa
  :ensure t
  :config
  ;; Install soong-mode form github when quelpa will be ready.
  (quelpa '(soong-mode
            :fetcher github
            :repo "bobrofon/soong-mode")))

;; Configure soong-mode
(use-package soong-mode
  ;; Managed my quelpa
  :ensure nil
  :custom
  ;; to sort arrays during formatting
  (soong-bpfmt-sort-arrays t)
  ;; to automatically apply formating on save
  (soong-bpfmt-reformat-on-save t))

From MELPA using use-package

;; Install and configure soong-mode
(use-package soong-mode
  :ensure t
  :custom
  ;; to sort arrays during formatting
  (soong-bpfmt-sort-arrays t)
  ;; to automatically apply formating on save
  (soong-bpfmt-reformat-on-save t))

Default bindings

bindingfunctioneffect
C-c =soong-reformat-bufferApply bpfmt formatting to the current buffer.