Author: klimek
Date: Tue Jun 11 07:00:24 2013
New Revision: 183739

URL: http://llvm.org/viewvc/llvm-project?rev=183739&view=rev
Log:
Make it possible to assign clang-format-buffer to a keybinding.

Patch by Chris Gray.

Modified:
    cfe/trunk/tools/clang-format/clang-format.el

Modified: cfe/trunk/tools/clang-format/clang-format.el
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-format/clang-format.el?rev=183739&r1=183738&r2=183739&view=diff
==============================================================================
--- cfe/trunk/tools/clang-format/clang-format.el (original)
+++ cfe/trunk/tools/clang-format/clang-format.el Tue Jun 11 07:00:24 2013
@@ -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