-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
66 lines (53 loc) · 2.21 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
(add-to-list 'load-path "~/.emacs.d/lisp")
(add-to-list 'load-path "~/.emacs.d/extern")
(require 'init-site-lisp) ; Must come before elpa, as it may provide package.el
(require 'init-elpa) ; Machinery for installing required packages
(require 'init-emacs)
(require 'init-themes)
(require 'init-easy-editing)
(require 'init-shell)
(require 'init-window)
(require 'init-c)
(require 'init-csharp)
;;-----------------------------------------------
;; general configure
;;-----------------------------------------------
;;-----------------------------------------------
;; template configure
;;-----------------------------------------------
;; (require 'browse-url) ; part of gnu emacs
;; ;; translate the current or selected word in the internet
;; (defun my/translate-to-cn ()
;; "Look up the word under cursor in Wikipedia.
;; If there is a text selection (a phrase), use that.
;; This command switches to browser."
;; (interactive)
;; (let (word url)
;; (setq word
;; (if (use-region-p)
;; (buffer-substring-no-properties (region-beginning) (region-end))
;; (current-word)))
;; (setq word (replace-regexp-in-string " " "_" word))
;; ;; jump to OS's default browser
;; ;; (browse-url (concat "https://www.baidu.com/s?wd=" word))
;; (setq url (concat "http://cn.bing.com/dict/search?q=" word))
;; (eww url) ; emacs's own browser
;; (message "Press q to come back")
;; ))
;;-----------------------------------------------
;; custom generating configure
;;-----------------------------------------------
(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
("f78de13274781fbb6b01afd43327a4535438ebaeec91d93ebdbba1e3fba34d3c" 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.
)