Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • In reading the documentation for treesit-auto, the author expresses the expectation that it will be made obsolete in emacs30. Did that come to pass? Commented Oct 6 at 17:45
  • No; still working. The author speaks about an "eventually obsolescence", nothing is sure. Commented Oct 7 at 5:51
  • 1
    I'm accepting your answer. I didn't actually end up using any of the approaches you provided, but it did prompt me to rebuild emacs without using the "--with-tree-sitter" configuration setting. Commented Oct 7 at 12:28
  • Yes, that rebuild is mandatory. The actual doomemacs uses the built-in trees it, you need to provide +treesit switch in your configuration for cc (see modules/tools/tree-sitter). An alternate solution is to make your own file/package for c/cpp mode. You can add clang-formatting in your configuration if you still have problems, and generate a .clang-format file; there is on Melpa a clang-format package. Commented Oct 7 at 13:34
  • See. modules/editor/format - this uses the package apheleia, is a good one to have formatting for various programming language, it uses clang-format, so it is good to have it. Commented Oct 7 at 13:40