- 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)
;; 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))
;; 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))
binding | function | effect |
---|---|---|
C-c = | soong-reformat-buffer | Apply bpfmt formatting to the current buffer. |