-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
86 lines (77 loc) · 4.04 KB
/
init.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
79
80
81
82
83
84
85
86
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")))
(setq gc-cons-threshold 100000000)
(defconst emacs-min-version "24.4" "Minimal version of Emacs.")
;; MacOS is ls command haven't --dired option becase brew install gls in coreutils and path setting.
(when (equal system-type 'darwin)
(let ((gls "/usr/local/bin/gls"))
(if (file-exists-p gls) (setq insert-directory-program gls))))
(if (not (version<= emacs-min-version emacs-version))
(error (concat "Your version of Emacs (%s) is too old. "
"emacs requires Emacs version %s or above.")
emacs-version emacs-min-version)
(load-file (concat (file-name-directory "~/.emacs.d/init.el")
"core/core-load-paths.el"))
(if (require 'quelpa nil t)
(quelpa-self-upgrade)
(with-temp-buffer
(url-insert-file-contents "https://raw.github.com/quelpa/quelpa/master/bootstrap.el")
(eval-buffer)))
(quelpa
'(quelpa-use-package
:fetcher github
:repo "quelpa/quelpa-use-package"))
(require 'quelpa-use-package)
(require 'core-layers)
(require 'core-funcs)
(layers/init)
;; el-get install
(unless (require 'el-get nil 'noerror)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el")
(goto-char (point-max))
(eval-print-last-sexp)))
;; load color theme (Emacs theme framework)
;; (load-theme 'dracula-custom t t)
;; StartUp Dirctory Settings
;; for Mac OS X Marvericks
(if (and (eq window-system 'ns) ;; Mac OS X
(equal (getenv "PATH") "/usr/bin:/bin:/usr/sbin:/sbin")) ;; launch from Dock
(progn
(setq default-directory "~/")
(setq command-line-default-directory "~/")))
(when load-file-name
(setq user-emacs-directory (file-name-directory load-file-name)))
(spaceline-compile))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(anzu-deactivate-region t)
'(anzu-mode-lighter "")
'(anzu-replace-to-string-separator " => ")
'(anzu-search-threshold 1000)
'(company-dabbrev-code-other-buffers (quote all))
'(company-dabbrev-downcase nil)
'(company-dabbrev-other-buffers (quote all))
'(edts-inhibit-package-check t)
'(package-selected-packages
(quote
(editorconfig plantuml-mode eglot dap-mode bui tree-mode company-lsp lsp-ui lsp-mode dash-functional vue-mode edit-indirect ssass-mode vue-html-mode auto-yasnippet ivy-yasnippet git-complete company-flx fuzzy company-statistics rg ag pyenv-mode pythonic quelpa-use-package markdown-mode helm-css-scss scss-mode slim-mode slime-company slime macrostep elpy yasnippet pyvenv highlight-indentation find-file-in-project ivy jedi jedi-core python-environment epc ctable concurrent deferred flymake-cursor helm-migemo migemo json-mode json-snatcher json-reformat yaml-mode web-mode haskell-mode magit magit-popup git-commit with-editor persp-mode dockerfile-mode gist gh logito pcache marshal ht avy anzu smooth-scrolling smooth-scroll yascroll ac-html f mode-icons spaceline powerline ddskk cdb ccc use-package diminish bind-key helm helm-core async init-loader spacemacs-theme smartparens quelpa flymake-python-pyflakes ac-alchemist)))
'(ruby-insert-encoding-magic-comment nil)
'(safe-local-variable-values (quote ((lexical-bindings . t)))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)