diff options
| -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) |
