mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 10:31:23 -08:00
parent
5a861608c8
commit
a45f19f92b
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@ This is ignored by ccls.")
|
|||
'((cpp :url "https://github.com/tree-sitter/tree-sitter-cpp"
|
||||
:rev "v0.23.4"))))
|
||||
:config
|
||||
;; HACK: cc-mode adds null entries to `major-mode-remap-defaults', which
|
||||
;; overrides our tree-sitter remappings, causing the first remap to succeed,
|
||||
;; but future remaps to fail.
|
||||
(dolist (mode '(c-mode c++-mode c-or-c++-mode))
|
||||
(cl-callf2 delete (list mode) major-mode-remap-defaults))
|
||||
|
||||
(set-docsets! '(c-mode c-ts-mode) "C")
|
||||
(set-docsets! '(c++-mode c++-ts-mode) "C++" "Boost")
|
||||
(set-electric! '(c-mode c++-mode objc-mode java-mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue