-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
94 lines (83 loc) · 3.01 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
87
88
89
90
91
92
93
94
(require 'package)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
;; USE PACKAGE
(setq package-enable-at-startup nil)
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(setq use-package-always-ensure t)
;; PACKAGES
(use-package helm
:bind ("M-x" . helm-M-x))
(use-package projectile
:init (projectile-mode))
(use-package helm-cider
:init (helm-cider-mode 1))
(use-package helm-projectile)
(use-package aggressive-indent)
(use-package epresent)
(use-package handlebars-mode
:init (require 'handlebars-mode))
(use-package json-mode)
(use-package neotree
:ensure projectile
:init (setq projectile-switch-project-action 'neotree-projectile-action)
:bind
("<f8>" . neotree-toggle))
(use-package ace-jump-mode
:bind ("C-0" . ace-jump-mode))
(use-package web-mode
:init
(setq web-mode-enable-auto-pairing t
web-mode-enable-auto-expanding t))
(use-package vue-html-mode)
(use-package vue-mode)
(load-file "~/.emacs.d/git.el")
(load-file "~/.emacs.d/clojure.el")
(load-file "~/.emacs.d/flycheck.el")
;; EMACS CONFIGURAIONS
;; backup files
(setq
backup-by-copying t ; don't clobber symlinks
backup-directory-alist
'(("." . "~/.saves")) ; don't litter my fs tree
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t) ; use versioned backups
;; PACKAGE CONFIGURATIONS
(load-file "~/.emacs.d/org-mode.el")
;; Appearence
;; hide menu/tool/scroll bars
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(setq org-src-fontify-natively t)
;; hide splash scree
(setq inhibit-startup-message t)
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
(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.
'(custom-enabled-themes (quote (monokai)))
'(custom-safe-themes
(quote
("c924950f6b5b92a064c5ad7063bb34fd3facead47cd0d761a31e7e76252996f7" default)))
'(indent-tabs-mode nil)
'(org-agenda-files (quote ("~/Dropbox/org/todo.org")))
'(package-selected-packages
(quote
(web-mode vue-html-mode vue-mode ace-jump-mode neotree circe flycheck-color-mode-line flycheck json-mode handlebars-mode epresent helm-cider helm-projectile cider clojure-mode-extra-font-locking clojure-mode paredit magit use-package helm-fuzzy-find dracula-theme))))
(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.
)