Skip to content

Commit

Permalink
[doom] workaround formatter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 committed Sep 13, 2024
1 parent 6021cfd commit 1cdfe73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions roles/emacs/doom/config/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,11 @@
;; clangd path
(setq lsp-clients-clangd-executable "clangd-18")

;; clang-format path
(setq clang-format-executable "clang-format-18")

;; C/C++ paren settings
(after! cc-mode
(add-hook 'c++-mode-hook #'(lambda ()
;; disable auto-insertion of angle brackets)
(sp-local-pair 'c++-mode "<" nil :actions nil)
(c-set-offset 'innamespace 0)
(setq c-basic-offset 4))))
(sp-local-pair 'c++-mode "<" nil :actions nil))))

;; python version
(after! python
Expand Down
2 changes: 1 addition & 1 deletion roles/emacs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

- name: Install clang tools
apt:
name: ["clangd-18", "clang-format-18"]
name: ["clangd-18", "clang-format-18", "clang-format"] # TODO doomemacs cannot set clang-format-18 as clang-format
state: present
become: yes

Expand Down

0 comments on commit 1cdfe73

Please sign in to comment.