Hi, the following patch makes it possible to assign clang-format-buffer to
a keybinding.

Index: clang-format/clang-format.el
===================================================================
--- clang-format/clang-format.el (revision 183710)
+++ clang-format/clang-format.el (working copy)
@@ -28,6 +28,7 @@

 (defun clang-format-buffer ()
   "Use clang-format to format the current buffer."
+  (interactive)
   (clang-format (point-min) (point-max)))

 (defun clang-format (begin end)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to