diff options
author | Manuel Klimek <klimek@google.com> | 2013-06-11 12:00:24 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-06-11 12:00:24 +0000 |
commit | ac2bfd812e298dcc975efd9ec614c6cda65df197 (patch) | |
tree | 17ab1ed72314a2cfca8c428b6bc1268d6b08f1ef /tools/clang-format | |
parent | 0f9b855e6869970975db23863ac3d0eb1866a3ca (diff) | |
download | clang-ac2bfd812e298dcc975efd9ec614c6cda65df197.tar.gz clang-ac2bfd812e298dcc975efd9ec614c6cda65df197.tar.bz2 clang-ac2bfd812e298dcc975efd9ec614c6cda65df197.tar.xz |
Make it possible to assign clang-format-buffer to a keybinding.
Patch by Chris Gray.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-format')
-rw-r--r-- | tools/clang-format/clang-format.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/clang-format/clang-format.el b/tools/clang-format/clang-format.el index 48fe36f2e5..b0131ed319 100644 --- a/tools/clang-format/clang-format.el +++ b/tools/clang-format/clang-format.el @@ -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) |