-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotemacs.el
80 lines (68 loc) · 2.63 KB
/
dotemacs.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
;;; Michael's .emacs
;;; Dot-emacs.el ---
(global-set-key "\C-c\C-u" 'eval-buffer)
(setq load-path (cons "/usr/share/emacs/site-lisp" load-path))
(setq load-path (cons "/usr/local/share/emacs/site-lisp" load-path))
;;; (setq load-path (cons (expand-file-name ".") load-path))
(if (string= (expand-file-name ".") "/Users/michael/Documents/dot-emacs")
(progn
(setq load-path (cons (expand-file-name "~/Documents/dot-emacs/emacs-lisp") load-path)))
(progn
(setq load-path (cons (expand-file-name "~/.emacs-lisp") load-path))))
(load "config")
(load "custom-functions")
(load "global-keys")
; -------------------------------------
(require 'package)
; (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages
'(php-mode
scss-mode
less-css-mode
js2-mode
jdee
ejson-mode
yaml-mode
)
)
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
;;; dot-emacs.el ends here
(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.
'(indent-tabs-mode nil)
'(large-file-warning-threshold nil)
'(tool-bar-mode nil nil (tool-bar))
'(truncate-lines t)
'(uniquify-buffer-name-style (quote forward) nil (uniquify)))
(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.
'(default ((t (
:stipple nil
:background "DarkSlateGrey"
:foreground "Wheat"
:inverse-video nil
:box nil
:strike-through nil
:overline nil
:underline nil
:slant normal
:weight normal
:height 130
:width normal
:family "apple-andale mono"))))
'(cperl-array-face ((((class color) (background dark)) (:foreground "yellow"))))
'(cperl-hash-face ((((class color) (background dark)) (:foreground "Pink"))))
'(cursor ((t (:background "Wheat")))))