[PATCH] tiny patch to clang-format.el

Chris Gray chrismgray at gmail.com
Mon Jun 10 16:49:17 PDT 2013


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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130610/ab954b86/attachment.html>


More information about the cfe-commits mailing list