From 7020f806357e1d94ed830e74711074573ef805e5 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Thu, 19 Feb 2026 21:38:29 +0000 Subject: [emacs] added rc/require and simpc and configured some packages --- .emacs | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index d369937..3111232 100644 --- a/.emacs +++ b/.emacs @@ -1,13 +1,53 @@ (setq custom-file "~/.emacs.custom.el") (load custom-file) +(package-initialize) + (add-to-list 'load-path "~/.emacs.local") -(require 'simpc-mode) -(add-to-list 'auto-mode-alist '("\\.[hc]\\(pp\\)?\\'" . simpc-mode)) + +(load "~/.emacs.rc/rc.el") + +;; Appearance +(add-to-list 'default-frame-alist `(font . "FiraCode-11")) (tool-bar-mode 0) (menu-bar-mode 0) (scroll-bar-mode 0) (global-display-line-numbers-mode 1) + +;; simpc +(require 'simpc-mode) +(add-to-list 'auto-mode-alist '("\\.[hc]\\(pp\\)?\\'" . simpc-mode)) + +;; evil +(rc/require 'evil) (evil-mode) + +;; ido +(rc/require 'ido) (ido-mode) +(ido-everywhere) + +;; magit +(rc/require 'magit) + +(setq magit-auto-revert-mode nil) + +(global-set-key (kbd "C-c m s") 'magit-status) +(global-set-key (kbd "C-c m l") 'magit-log) + +;; compile +(add-to-list 'display-buffer-alist + '("\\*compilation\\*" + (display-buffer-below-selected) + (window-height . 0.3))) + +(global-set-key (kbd "C-c c") #'compile) + +;; reload ~/.emacs +(defun reload-init-file () + "Reload the Emacs init file." + (interactive) + (load-file "~/.emacs")) + +(global-set-key (kbd "C-c i") #'reload-init-file) -- cgit v1.2.3