]> granicus.if.org Git - clang/commitdiff
Make it possible to assign clang-format-buffer to a keybinding.
authorManuel Klimek <klimek@google.com>
Tue, 11 Jun 2013 12:00:24 +0000 (12:00 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 11 Jun 2013 12:00:24 +0000 (12:00 +0000)
Patch by Chris Gray.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183739 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-format/clang-format.el

index 48fe36f2e5635a7c758b682e8d18502c8f54656c..b0131ed31949915d2492b8e104b3401c755ec098 100644 (file)
@@ -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)