Browse Source

Fixed conditional clang-format not being interactive

master
Macoy Madson 5 years ago
parent
commit
7553ad9784
  1. 4
      Emacs/emacsConfig.txt

4
Emacs/emacsConfig.txt

@ -211,8 +211,8 @@
"Format the region if one is selected, otherwise format the buffer"
(interactive)
(if (use-region-p)
(clang-format-region)
(clang-format-buffer)
(call-interactively 'clang-format-region)
(call-interactively 'clang-format-buffer)
)
)
(global-set-key (kbd "C-M-a") 'macoy-clang-format-region-or-buffer)

Loading…
Cancel
Save