-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.el
36 lines (24 loc) · 852 Bytes
/
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
;; Emacs Config
;; Add lisp directory to path
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
(eval-and-compile
(require 'cask "~/.cask/cask.el")
(cask-initialize)
(add-to-list 'load-path "~/.emacs.d/lisp"))
(package-initialize)
(require 'benchmark-init)
(require 'cask "~/.cask/cask.el")
;; Recompile .emacs.d/lisp & .emacs.d/lisp-config
(byte-recompile-directory "~/.emacs.d/lisp" 0)
(byte-recompile-directory "~/.emacs.d/lisp-config" 0)
(load "pre-cask")
(load "customize")
;; Init All Plugin with Cask & Pallet
(cask-initialize)
;; Load all files with *.elc in lisp-config
(mapc 'load-file (directory-files (expand-file-name "lisp-config" user-emacs-directory) t ".elc$"))
;;;;;;;;;;;;
;; ShortCuts
;;;;;;;;;;;;
(global-set-key (kbd "C-x k") 'kill-this-buffer)
(global-set-key (kbd "<f5>") 'revert-buffer)