1
0
Fork 0

fix(emacs): modify cpp keybinds

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-09-29 17:11:41 -04:00
parent 22bde4112d
commit 618c261e22
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -12,7 +12,11 @@
(defun custom-run-c++ () (defun custom-run-c++ ()
"Run the produced `bin' binary." "Run the produced `bin' binary."
(interactive) (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++ () (defun configure-c++ ()
"Configure my custom C++ enviroment." "Configure my custom C++ enviroment."