aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-24 04:01:33 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-24 04:01:33 +0530
commit5c47cacdbd9204b8c0a2546a054b6f3f37ea851a (patch)
tree650440266be5628ce708dfe2c6bd00523b306d2d
parent711dcf5e2d592271e0939c205ba33dbd93a4d547 (diff)
downloaddotfiles-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.
-rw-r--r--Emacs/.config/emacs/lang.org10
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)