chore(emacs): remove cppconfig.el
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
0cf7b18000
commit
f2561834a8
3 changed files with 7 additions and 32 deletions
|
@ -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
|
|
|
@ -30,6 +30,12 @@
|
||||||
(unless (equal current-prefix-arg nil)
|
(unless (equal current-prefix-arg nil)
|
||||||
(delete-other-windows)))
|
(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
|
;;; Languages
|
||||||
|
|
||||||
(use-package racket-mode :straight t
|
(use-package racket-mode :straight t
|
||||||
|
@ -94,6 +100,7 @@
|
||||||
(use-package inf-elixir :straight t)
|
(use-package inf-elixir :straight t)
|
||||||
(use-package nix-mode :straight t)
|
(use-package nix-mode :straight t)
|
||||||
(use-package irony :straight t
|
(use-package irony :straight t
|
||||||
|
:bind (("C-c C-c" . custom-compile-c++))
|
||||||
:hook ((c++-mode c-mode) . irony-mode))
|
:hook ((c++-mode c-mode) . irony-mode))
|
||||||
|
|
||||||
(provide 'priime-languages)
|
(provide 'priime-languages)
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
(when (equal (system-name) "framework")
|
(when (equal (system-name) "framework")
|
||||||
(load-library "mu4econfig"))
|
(load-library "mu4econfig"))
|
||||||
(load-library "latexconfig")
|
(load-library "latexconfig")
|
||||||
(load-library "cppconfig")
|
|
||||||
(load-library "gpgconfig")
|
(load-library "gpgconfig")
|
||||||
|
|
||||||
;; ====== Hooks ==============================
|
;; ====== Hooks ==============================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue