Add cmake-mode and clang-format
This commit is contained in:
parent
eb38848a12
commit
a8afdfffeb
@ -20,8 +20,11 @@
|
|||||||
|
|
||||||
(defvar emodule/languages-packages
|
(defvar emodule/languages-packages
|
||||||
|
|
||||||
'(;; C/C++
|
'(;; CMake
|
||||||
|
cmake-mode
|
||||||
|
;; C/C++
|
||||||
ccls
|
ccls
|
||||||
|
clang-format
|
||||||
;; Dockerfile
|
;; Dockerfile
|
||||||
dockerfile-mode
|
dockerfile-mode
|
||||||
;; P4
|
;; P4
|
||||||
@ -57,6 +60,13 @@
|
|||||||
:init (autoload 'antlr-v4-mode "antlr-mode" nil t)
|
:init (autoload 'antlr-v4-mode "antlr-mode" nil t)
|
||||||
:mode ("\\.g4\\'" . antlr-v4-mode))
|
:mode ("\\.g4\\'" . antlr-v4-mode))
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; CMake.
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(use-package cmake-mode
|
||||||
|
:defer t)
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; C/C++.
|
;; C/C++.
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
@ -68,6 +78,14 @@
|
|||||||
(setq-default c-default-style "linux"
|
(setq-default c-default-style "linux"
|
||||||
c-basic-offset 4)
|
c-basic-offset 4)
|
||||||
|
|
||||||
|
(use-package clang-format
|
||||||
|
:bind (:map c-mode-map
|
||||||
|
("C-c C-f" . clang-format-buffer)
|
||||||
|
:map c++-mode-map
|
||||||
|
("C-c C-f" . clang-format-buffer)
|
||||||
|
:map objc-mode-map
|
||||||
|
("C-c C-f" . clang-format-buffer)))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Dockerfile.
|
;; Dockerfile.
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user