-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs.bk
56 lines (44 loc) · 1.75 KB
/
emacs.bk
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
; I like using the mouse in emacs
(require 'mouse)
(xterm-mouse-mode t)
(defun track-mouse (e))
; tab width
(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)
(setq-default c-basic-indent 1)
(setq tab-width 2)
;(defvaralias 'c-basic-offset 'tab-width)
;(defvaralias 'cperl-indent-level 'tab-width)
; sets the load path correctly
(setq load-path (cons "~/.emacs.d/" load-path))
; load themes
(add-to-list 'custom-theme-load-path "~/.emacs-lisp/themes/")
; load the railscast theme
; (load-file "~/.emacs-lisp/themes/railscasts-theme.el")
; (load-theme 'railscasts t)
; load themes
(defun monokai-init ()
(load-theme 'monokai t)
)
(add-hook 'after-init-hook 'monokai-init)
(defun warm-night-init ()
(load-theme 'warm-night t)
)
;(add-hook 'after-init-hook 'warm-night-init)
; set up the package manager
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
("org" . "http://orgmode.org/elpa/")))
(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-safe-themes (quote ("57f8801351e8b7677923c9fe547f7e19f38c99b80d68c34da6fa9b94dc6d3297" "9e7e1bd71ca102fcfc2646520bb2f25203544e7cc464a30c1cbd1385c65898f4" default))))
(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.
'(font-lock-function-name-face ()))