-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemacs-dealM.el
78 lines (60 loc) · 2.26 KB
/
emacs-dealM.el
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
;; -*- Emacs-Lisp -*-
;; configure path depend on system.
;; SPEEDY startup
(setq gc-cons-threshold 80000000)
(defconst emacs-root-path
(file-name-directory (or load-file-name buffer-file-name)) "Emacs root settings path (in linux)")
(defconst plugins-path-r
(concat emacs-root-path "plugins/") "Reference path of emacs lisp package")
(defconst themes-path-r
(concat emacs-root-path "themes/") "Reference path of emacs theme")
(defconst settings-path-r
(concat emacs-root-path "settings/") "Personel prefer setting of lisp package")
(defcustom default-theme-r 'monokai
"Default theme for dealM"
:type 'symbol
:group 'dealM)
;; Font settings works for window mode
;; emacs -nw will inherit terminal's
(defcustom default-source-font-r "Courier-14"
"Default font for dealM"
:type 'string
:group 'dealM)
(set-face-attribute 'default nil :font default-source-font-r)
;; add load path
(add-to-list 'load-path settings-path-r)
(add-to-list 'load-path plugins-path-r)
(add-to-list 'load-path (concat plugins-path-r "dash/"))
(add-to-list 'load-path (concat plugins-path-r "use-package/"))
;; BENCHMARK
;;(add-to-list 'load-path (concat plugins-path-r "benchmark-init-el/"))
;;(require 'benchmark-init-loaddefs)
;;(benchmark-init/activate)
;; tools
;; ------------------------------------------------------------------
(require 'use-package)
(require 'flycheck-settings)
(require 'auto-complete-setting)
;; Theme, color and fonts, encoding settings.
;; ------------------------------------------------------------------
(require 'theme-settings)
(require 'modeline-settings)
;; default emacs behavior settings(keys and common settings)
;; ------------------------------------------------------------------
(require 'default-behavior-settings)
(require 'window-buffer-settings)
(require 'edit-settings)
(require 'ido-settings)
(require 'dired-settings)
;; Programming settings
;; ------------------------------------------------------------------
(require 'dev-settings)
(require 'lisp-settings)
(require 'go-settings)
(require 'lsp-settings)
;; registers.
;; ------------------------------------------------------------------
(set-register ?e '(file . "~/.emacs")) ;; C-x r j e: register jump to the .emacs(home).
(provide 'emacs-dealM)
;; emacs-dealM ends here.
;;;