diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-03-09 20:32:29 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-03-09 20:32:29 +0000 |
| commit | 27cf89ad7f4b731116b31ca7fbc3f8fe2382d3d5 (patch) | |
| tree | e336e51cb0d5725d0197387e60b88ba6ff2851c4 | |
| parent | 828f1bfda86a8be9a2481c6bdbe3449128e051c1 (diff) | |
[emacs] optimised config for faster startup
| -rw-r--r-- | .emacs | 20 |
1 files changed, 7 insertions, 13 deletions
@@ -1,15 +1,11 @@ (setq custom-file "~/.emacs.custom.el") (load custom-file) -(package-initialize) - (add-to-list 'load-path "~/.emacs.local") - (load "~/.emacs.rc/rc.el") -;; Appearance +;; appearance (add-to-list 'default-frame-alist '(font . "FiraCode Nerd Font Mono-11")) - (tool-bar-mode 0) (menu-bar-mode 0) (scroll-bar-mode 0) @@ -29,7 +25,8 @@ (ido-everywhere) ;; magit -(rc/require 'magit) +(autoload 'magit-status "magit" nil t) +(autoload 'magit-log "magit" nil t) (setq magit-auto-revert-mode nil) @@ -37,10 +34,11 @@ (global-set-key (kbd "C-c m l") 'magit-log) ;; pdf-tools -(rc/require 'pdf-tools) ;; NOTE M-x pdf-tools-install +(rc/require 'pdf-tools) +(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) (add-hook 'pdf-view-mode-hook (lambda () (display-line-numbers-mode -1))) -;; compile +;; compile window (add-to-list 'display-buffer-alist '("\\*compilation\\*" (display-buffer-below-selected) @@ -48,13 +46,9 @@ (global-set-key (kbd "C-c c") #'compile) -;; reload ~/.emacs +;; reload init (defun reload-init-file () (interactive) (load-file "~/.emacs")) (global-set-key (kbd "C-c i") #'reload-init-file) - -;; pdf-tools -(rc/require 'pdf-tools) -(pdf-tools-install) |
