 ;;;;;;;;
 ;; ccls
 ;;;;;;;;
-;; build by the following commands.
+;; install clang environments and build by the following commands.
+;; $ sudo apt install clang clang-format clang-tools clangd libclang-dev llvm
 ;; $ cmake -H. -Brelease -DCMAKE_BUILD_TYPE=Release
 ;; $ cmake --build release
 (require-if-not 'ccls)

;; clang-format
;;;;;;;;
(require-if-not 'clang-format)
(setq clang-format-executable "/usr/bin/clang-format-9")

;;;
;; company-mode

;; lsp (lsp-mode)
;;;;;;;;
(require-if-not 'lsp)
(setq lsp-prefer-flymake nil)
(add-hook 'c-mode-hook #'lsp)
(add-hook 'c++-mode-hook #'lsp)

