diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-24 04:01:33 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-24 04:01:33 +0530 |
commit | 5c47cacdbd9204b8c0a2546a054b6f3f37ea851a (patch) | |
tree | 650440266be5628ce708dfe2c6bd00523b306d2d /Emacs/.config/emacs/lang.org | |
parent | 711dcf5e2d592271e0939c205ba33dbd93a4d547 (diff) | |
download | dotfiles-5c47cacdbd9204b8c0a2546a054b6f3f37ea851a.tar.gz dotfiles-5c47cacdbd9204b8c0a2546a054b6f3f37ea851a.tar.bz2 dotfiles-5c47cacdbd9204b8c0a2546a054b6f3f37ea851a.zip |
(Emacs/lang)-clang-format-mode on cc-mode-hook
I can configure projects to use it if necessary.
Diffstat (limited to 'Emacs/.config/emacs/lang.org')
-rw-r--r-- | Emacs/.config/emacs/lang.org | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Emacs/.config/emacs/lang.org b/Emacs/.config/emacs/lang.org index 594c52e..b1cbcb2 100644 --- a/Emacs/.config/emacs/lang.org +++ b/Emacs/.config/emacs/lang.org @@ -277,9 +277,13 @@ my dotfiles). :after cc-mode :commands (+code/clang-format-region-or-buffer clang-format-mode) - :hook - (c-mode-hook . clang-format-mode) - (c++-mode-hook . clang-format-mode) + ;;; 2024-04-24: disabled as it's annoying on projects where a + ;;; .clang-format isn't defined. Furthermore, does it make sense + ;;; for *every* file you open and edit to have a format function run + ;;; right after? seems a bit slow. + ;; :hook + ;; (c-mode-hook . clang-format-mode) + ;; (c++-mode-hook . clang-format-mode) :general (code-leader :keymaps '(c-mode-map c++-mode-map) |