1
0
Fork 0

chore(emacs): remove cppconfig.el

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-11-04 19:51:34 -05:00
parent 0cf7b18000
commit f2561834a8
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
3 changed files with 7 additions and 32 deletions

View file

@ -1,31 +0,0 @@
;;; cppconfig.el --- Configuration for C/C++
;;; Commentary:
;; Custom configuration for C/C++.
;;; Code:
(defun custom-compile-c++ ()
"Run the `just' command -- the command I use to compile my environment."
(interactive)
(save-buffer)
(compile (concat "just build " (buffer-name))))
(defun custom-run-c++ ()
"Run the produced `bin' binary."
(interactive)
(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."
(keymap-local-set "C-c C-c" #'custom-compile-c++)
(keymap-local-set "C-c C-r" #'custom-run-c++)
(keymap-local-set "C-c C-." #'company-complete))
(add-hook 'c-mode-hook #'configure-c++)
(add-hook 'c++-mode-hook #'configure-c++)
(provide 'cppconfig)
;;; cppconfig.el ends here

View file

@ -30,6 +30,12 @@
(unless (equal current-prefix-arg nil)
(delete-other-windows)))
(defun custom-compile-c++ ()
"Run the `just' command -- the command I use to compile my environment."
(interactive)
(save-buffer)
(compile (concat "just build " (buffer-name))))
;;; Languages
(use-package racket-mode :straight t
@ -94,6 +100,7 @@
(use-package inf-elixir :straight t)
(use-package nix-mode :straight t)
(use-package irony :straight t
:bind (("C-c C-c" . custom-compile-c++))
:hook ((c++-mode c-mode) . irony-mode))
(provide 'priime-languages)

View file

@ -36,7 +36,6 @@
(when (equal (system-name) "framework")
(load-library "mu4econfig"))
(load-library "latexconfig")
(load-library "cppconfig")
(load-library "gpgconfig")
;; ====== Hooks ==============================