Browse Source

Emacs: Only format C++ buffers in source trees with .clang-format file

master
Riyyi 2 years ago
parent
commit
68a2c75bbc
  1. 4
      .config/emacs/config/development.org

4
.config/emacs/config/development.org

@ -229,7 +229,9 @@ Language Server Protocol.
(list
(if (and (eq major-mode 'c++-mode)
(bound-and-true-p lsp-mode)
(project-current))
(or
(locate-dominating-file "." ".clang-format")
(locate-dominating-file "." "_clang-format")))
t
nil))))
(when (car lsp-in-cpp-project-cache)

Loading…
Cancel
Save