Skip to content
Snippets Groups Projects
Commit c00dd835 authored by Manuel Klimek's avatar Manuel Klimek
Browse files

Make it possible to assign clang-format-buffer to a keybinding.

Patch by Chris Gray.

llvm-svn: 183739
parent a8570d38
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
(defun clang-format-buffer () (defun clang-format-buffer ()
"Use clang-format to format the current buffer." "Use clang-format to format the current buffer."
(interactive)
(clang-format (point-min) (point-max))) (clang-format (point-min) (point-max)))
(defun clang-format (begin end) (defun clang-format (begin end)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment