summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-09-04 13:55:32 -0400
committerDavid Robillard <d@drobilla.net>2024-09-04 13:55:32 -0400
commitaad7c827446ecbe958ba2a47b41b4a56a2980778 (patch)
treedda3ef917336a6b923fe496575956de24978d23a /emacs/.emacs.d/init.el
parent3c300111d4bffb3bcadcbc6846f541165ab89a14 (diff)
downloaddotfiles-aad7c827446ecbe958ba2a47b41b4a56a2980778.tar.gz
dotfiles-aad7c827446ecbe958ba2a47b41b4a56a2980778.tar.bz2
dotfiles-aad7c827446ecbe958ba2a47b41b4a56a2980778.zip
Switch to using clang-format package
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el11
1 files changed, 4 insertions, 7 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 817f60b..a969a64 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -41,12 +41,6 @@
;(use-package ansi-color :commands compile :after (ivy) :config (counsel-mode))
-(use-package clang-format
- :after (s)
- :commands (clang-format-buffer clang-format-region)
- :hook (c-mode-common . clang-format-c-mode-hook))
-
-(use-package clang-format :commands (clang-format-buffer clang-format-region))
(use-package counsel :after (ivy) :config (counsel-mode))
(use-package counsel-gtags :commands ggtags-mode)
(use-package counsel-projectile :after (counsel projectile))
@@ -469,7 +463,10 @@
;;; Code formatting
-(require 'clang-format)
+(use-package clang-format
+ :after (s)
+ :commands (clang-format-buffer clang-format-region)
+ :hook (c-mode-common . clang-format-c-mode-hook))
(defun get-clang-format-option (config-str field is-num)
"Retrieve a config option from a clang-format config."