Make Emacs load 2x faster

This commit is contained in:
Justine Tunney 2024-08-23 20:08:05 -07:00
parent 1a9f82bc9f
commit 37ca1badaf
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
4 changed files with 109 additions and 53 deletions

View file

@ -104,7 +104,8 @@
cosmo-format-blacklist))
(not (save-excursion
(beginning-of-buffer)
(looking-at "/\\* clang-format off \\*/"))))
(or (looking-at "/\\* clang-format off \\*/")
(looking-at "// clang-format off")))))
(let* ((bin (cosmo--find-clang-format-bin))
(this (buffer-file-name))
(root (locate-dominating-file this ".clang-format")))