summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs20
1 files changed, 7 insertions, 13 deletions
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)