Skip to content

Commit

Permalink
tweak: open clang-[format|tidy] in YAML mode
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 27, 2024
1 parent 7db8582 commit 0f1e448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,10 @@ Useful for quickly switching to an open buffer."
("C--" . text-scale-decrease)
("C-=" . text-scale-adjust)))

(use-package yaml-ts-mode
:when (+emacs-features-p 'tree-sitter)
:mode (rx (any ?. ?_) (or "clang-format" "clang-tidy") eol))


(provide 'me-builtin)

Expand Down
3 changes: 2 additions & 1 deletion modules/me-data.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

(use-package yaml-mode
:straight t
:mode "Procfile\\'")
:mode "Procfile\\'"
:mode (rx (any ?. ?_) (or "clang-format" "clang-tidy") eol))

(use-package yaml-pro
:straight t
Expand Down

0 comments on commit 0f1e448

Please sign in to comment.