-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
125 lines (92 loc) · 2.95 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
;;;; Load emacs.d stuff
(load-file "~/.emacs.d/init-elpa.el") ;;; Initialized all need packages
(load-file "~/.emacs.d/init-func.el") ;;; load basic utilties
;;; load system library
(load-library "dired")
;;; load misc libraries
(add-to-list 'load-path "~/.emacs.d/misc")
(load-library "w3m-search.el")
;;(load-library "xscheme.el")
(load-library "quickrun.el")
(load-library "window.el")
(load-library "js-beautify.el")
(load-library "chm-view.el")
;;(load-library "rdebug/rdebug.el")
(load-library "sawfish.el")
(load-library "multi-web-mode.el")
(load-library "auto-scroll.el")
(load-library "tidy.el")
(load-library "misc.el")
(load-library "taskwarrior.el")
(load-library "workgroups2")
(load-library "ruby-mode")
(load-library "flymake")
(load-library "dka-w3m-wiki")
;;(load-library "nxhtml/autostart.el")
(load-library "tramp")
;; set variable
(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/jde/lisp")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mmm-mode")
(add-to-list 'load-path "~/.emacs.d/misc/emacs-rails")
;;(add-to-list 'load-path "~/.emacs.d/misc/pry")
;;(add-to-list 'load-path "~/.emacs.d/misc/ruby-dev" )
;;(autoload 'turn-on-ruby-dev "ruby-dev" nil t)
;;(add-hook 'ruby-mode-hook 'turn-on-ruby-dev)
;;;; require here.
(require 'package)
(require 'w3m-load)
(require 'sdcv-mode)
;;(require 'lua-mode)
;;(require 'slime)
;;(slime-setup)
;;(require 'geben)
;;(require 'jde)
;;(require 'cedet)
;;(require 'mmm-mode)
;;(require 'mmm-auto)
;;(require 'rails)
;;(require 'pry)
;;(autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process")
;;(autoload 'inf-ruby-keys "inf-ruby" "Set local key defs for inf-ruby in ruby-mode")
;;(add-hook 'ruby-mode-hook
;; '(lambda ()
;; (inf-ruby-keys)
;; ))
;;;
;;; custom-set-variables
;;;
(setq custom-file "~/.emacs.d/.custom.el")
(load-file custom-file)
;;; Global Key Mapping
(load-file "~/.emacs.d/keys.el")
;;
(ansi-color-for-comint-mode-on)
;;(setq load-path (append (list "/usr/share/emacs/site-lisp/elib" "/usr/share/emacs/site-lisp/jde/lisp") load-path))
;;(load-file "/usr/lib/erlang/lib/tools-2.6.5.1/emacs/erlang.el")
;;(load-file "/usr/lib/erlang/lib/tools-2.6.5.1/emacs/erlang-start.el")
;;(load-file "/usr/share/emacs/site-lisp/cedet/common/cedet.el")
;;(load-library "cedet")
;; ruby <-> elisp
(load-file "~/.emacs.d/misc/relisp.el")
(autoload 'relisp-start-slave "relisp" nil t)
(autoload 'ruby-eval "relisp" nil t)
;; load config
(load-config-directory "~/.emacs.d/config/")
;; load config-local
(load-config-directory "~/.emacs.d/config-local/")
;;
(put 'erase-buffer 'disabled nil)
(progn
(server-force-delete)
(server-start)
)
;; set proper frame size (only in x)
(if (eq 'x (window-system (selected-frame)))
(set-frame-size (selected-frame) 300 60)
(swap-ground-color)
)
;;(smart-tabs-insinuate 'c 'javascript 'python)
(openwith-mode)
(workgroups-mode 1)