From 7553ad978430038dd43d4e2a73fd1f6bf1ab0b48 Mon Sep 17 00:00:00 2001 From: Macoy Madson Date: Mon, 25 Jun 2018 18:15:38 -0700 Subject: [PATCH] Fixed conditional clang-format not being interactive --- Emacs/emacsConfig.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Emacs/emacsConfig.txt b/Emacs/emacsConfig.txt index 2cecb32..b977c08 100644 --- a/Emacs/emacsConfig.txt +++ b/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)