From 618c261e220539b529c2851b677aa55eea63b939 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Sun, 29 Sep 2024 17:11:41 -0400 Subject: [PATCH] fix(emacs): modify cpp keybinds Signed-off-by: Lucas Sta Maria --- .emacs.d/include/cppconfig.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.emacs.d/include/cppconfig.el b/.emacs.d/include/cppconfig.el index 510b744..7d02074 100644 --- a/.emacs.d/include/cppconfig.el +++ b/.emacs.d/include/cppconfig.el @@ -12,7 +12,11 @@ (defun custom-run-c++ () "Run the produced `bin' binary." (interactive) - (shell-command "./bin")) + + (let ((buf (get-buffer-create "*bin-output*"))) + (shell-command "./bin" buf buf) + (pop-to-buffer buf) + (read-only-mode 1))) (defun configure-c++ () "Configure my custom C++ enviroment."