<div dir="ltr">Hi, the following patch makes it possible to assign clang-format-buffer to a keybinding. <div><br></div><div><div>Index: clang-format/clang-format.el</div><div>===================================================================</div>
<div>--- clang-format/clang-format.el<span class="" style="white-space:pre"> </span>(revision 183710)</div><div>+++ clang-format/clang-format.el<span class="" style="white-space:pre"> </span>(working copy)</div><div>@@ -28,6 +28,7 @@</div>
<div> </div><div> (defun clang-format-buffer ()</div><div> "Use clang-format to format the current buffer."</div><div>+ (interactive)</div><div> (clang-format (point-min) (point-max)))</div><div> </div><div>
(defun clang-format (begin end)</div></div><div><br></div></div>