summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-02-19 21:38:29 +0000
committerCori Barker <coribarker2@gmail.com>2026-02-19 21:38:29 +0000
commit7020f806357e1d94ed830e74711074573ef805e5 (patch)
treef16496ba5c17aa1b0b5d169e5f5c068b58af2ca6 /.emacs
parenteffd0f6e45aef565869af1bcf07d43c6bc7df73b (diff)
[emacs] added rc/require and simpc and configured some packages
Diffstat (limited to '.emacs')
-rw-r--r--.emacs44
1 files changed, 42 insertions, 2 deletions
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)