blob: 311123298a7d246849171f2daddbec550edad52b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
(setq custom-file "~/.emacs.custom.el")
(load custom-file)
(package-initialize)
(add-to-list 'load-path "~/.emacs.local")
(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)
|