Switch to clang-tools from clang16
This commit is contained in:
parent
7185753421
commit
ffa0476f2d
2 changed files with 13 additions and 2 deletions
|
@ -147,7 +147,7 @@ in
|
||||||
nheko
|
nheko
|
||||||
mullvad-vpn
|
mullvad-vpn
|
||||||
mullvad
|
mullvad
|
||||||
clang-tools # mainly for clang-format
|
(clang-tools.override { llvmPackages = llvmPackages_16; }) # mainly for clang-format
|
||||||
(emacsWithPackagesFromUsePackage {
|
(emacsWithPackagesFromUsePackage {
|
||||||
config = ./emacs.el;
|
config = ./emacs.el;
|
||||||
defaultInitFile = true;
|
defaultInitFile = true;
|
||||||
|
|
13
emacs.el
13
emacs.el
|
@ -285,6 +285,10 @@
|
||||||
(evil-set-undo-system 'undo-redo)
|
(evil-set-undo-system 'undo-redo)
|
||||||
(evil-collection-init)))
|
(evil-collection-init)))
|
||||||
|
|
||||||
|
(evil-set-leader 'normal " ")
|
||||||
|
(evil-define-key 'normal 'global (kbd "<leader>f") 'find-file)
|
||||||
|
(evil-define-key 'normal 'global (kbd "<leader>b") 'switch-to-buffer)
|
||||||
|
|
||||||
;; -------- Tools and environment --------
|
;; -------- Tools and environment --------
|
||||||
|
|
||||||
;; By default, Emacs doesn't add system path to its search places
|
;; By default, Emacs doesn't add system path to its search places
|
||||||
|
@ -924,9 +928,16 @@ window, unless BACKGROUND (prefix-argument) is non-nil.
|
||||||
|
|
||||||
(with-eval-after-load 'eglot
|
(with-eval-after-load 'eglot
|
||||||
(add-to-list 'eglot-server-programs
|
(add-to-list 'eglot-server-programs
|
||||||
`(c++-mode . ("clangd"))))
|
`(c++-mode . ("clangd")))
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
`(c++-ts-mode . ("clangd")))
|
||||||
|
(add-to-list 'eglot-server-programs
|
||||||
|
`(c-ts-mode . ("clangd"))
|
||||||
|
))
|
||||||
|
|
||||||
(add-hook 'c++-mode-hook 'eglot-ensure)
|
(add-hook 'c++-mode-hook 'eglot-ensure)
|
||||||
|
(add-hook 'c++-ts-mode-hook 'eglot-ensure)
|
||||||
|
(add-hook 'c-ts-mode-hook 'eglot-ensure)
|
||||||
|
|
||||||
(use-package clang-format)
|
(use-package clang-format)
|
||||||
(use-package clang-format+)
|
(use-package clang-format+)
|
||||||
|
|
Loading…
Reference in a new issue