diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-02-19 21:38:29 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-02-19 21:38:29 +0000 |
| commit | 7020f806357e1d94ed830e74711074573ef805e5 (patch) | |
| tree | f16496ba5c17aa1b0b5d169e5f5c068b58af2ca6 /.emacs | |
| parent | effd0f6e45aef565869af1bcf07d43c6bc7df73b (diff) | |
[emacs] added rc/require and simpc and configured some packages
Diffstat (limited to '.emacs')
| -rw-r--r-- | .emacs | 44 |
1 files changed, 42 insertions, 2 deletions
@@ -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) |
