From 27cf89ad7f4b731116b31ca7fbc3f8fe2382d3d5 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Mon, 9 Mar 2026 20:32:29 +0000 Subject: [emacs] optimised config for faster startup --- .emacs | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index 2e7c3e5..538f7c9 100644 --- a/.emacs +++ b/.emacs @@ -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) -- cgit v1.2.3