-
Notifications
You must be signed in to change notification settings - Fork 1
/
.emacs
113 lines (94 loc) · 3.07 KB
/
.emacs
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
(setq c-default-style "linux")
(load-theme 'wombat t)
;(let ((default-directory "~/.emacs.d/site-lisp"))
; (normal-top-level-add-subdirs-to-load-path)
;(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
;(add-to-list 'load-path "~/.emacs.d/color-theme")
;(unless (require 'el-get nil t)
; (url-retrieve
; "https://github.com/dimitri/el-get/raw/master/el-get-install.el"
; (lambda (s)
; (end-of-buffer)
; (eval-print-last-sexp))))
;(el-get 'sync)
;
;(require 'color-theme)
;(color-theme-initialize)
;(color-theme-monokai)
(set-default-font "Monospace-10")
;auto refresh buffer
;;(global-auto-revert-mode t)
;slime
;(setq inferior-lisp-program "/path/to/lisp-executable")
;(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
;(require 'slime)
;(slime-setup)
;package
;(require 'package)
;(add-to-list 'package-archives
; '("marmalade" . "http://marmalade-repo.org/packages/"))
;(package-initialize)
;;Ibuffer
;(global-set-key (kbd "C-x C-b") 'ibuffer)
;(autoload 'ibuffer "ibuffer" "List buffers." t)
;;common set
;(column-number-mode t)
;(scroll-bar-mode nil)
;(set-scroll-bar-mode nil)
;(require 'wb-line-number)
;(wb-line-number-enable)
;(require 'vimpulse)
;(require 'undo-tree)
;(require 'ido)
(ido-mode t)
;;some bars
;(require 'sr-speedbar)
;(sr-speedbar-open)
;;(require 'tabbar)
;(tabbar-mode)
;(global-set-key (kbd "M--") 'tabbar-backward-group)
;(global-set-key (kbd "M-=") 'tabbar-forward-group)
;(global-set-key (kbd "M-1") 'tabbar-backward)
;(global-set-key (kbd "M-2") 'tabbar-forward)
;(setq evernote-enml-formatter-command '("w3m" "-dump" "-I" "UTF8" "-O" "UTF8")) ; option
;require 'evernote-mode)
;(global-set-key "\C-cec" 'evernote-create-note)
;(global-set-key "\C-ceo" 'evernote-open-note)
;(global-set-key "\C-ces" 'evernote-search-notes)
;(global-set-key "\C-ceS" 'evernote-do-saved-search)
;(global-set-key "\C-cew" 'evernote-write-note)
;(global-set-key "\C-cep" 'evernote-post-region)
;(global-set-key "\C-ceb" 'evernote-browser)
;CHINESE INPUT
;(global-set-key (kbd "C-SPC") 'nil)
;(require 'jabber-autoloads)
;(setq jabber-account-list
;'(("llj098@gmail.com"
;(:network-server . "talk.google.com")
;(:connection-type . ssl))))
;
;(require 'scala-mode-auto)
;(require 'go-mode)
;
;;; Load the ensime lisp code...
;(require 'ensime)
;; This step causes the ensime-mode to be started whenever
;; scala-mode is started for a buffer. You may have to customize this step
;; if you're not using the standard scala mode.
;(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
;; MINI HOWTO:
;; Open .scala file. M-x ensime (once per project)
;(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-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.
;)
;e
;)