-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs_v1
65 lines (52 loc) · 2.2 KB
/
.emacs_v1
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
(add-to-list 'load-path "~/.emacs.d/")
;; proxy
(setq url-proxy-services '(("no_proxy" . "tfs")
("http" . "10.0.0.1:3128")))
(custom-set-variables
'(column-number-mode t) ;; âíèçó áóäåì âèäåòü íîìåð ñòîëáöà
'(default-input-method "russian-computer") ;; íó à êóäà áåç ýòîãî
'(display-time-mode t) ;; íó.. â ïðèíöèïå íå íàäî, íî ñèìïàòè÷íî
'(tool-bar-mode nil) ;; âîò îí òóò òî÷íî íå íóæåí
)
(setq inhibit-startup-message t) ;; íå ïîêàçûâàòü ñîîáùåíèå ïðè ñòàðòå
(fset 'yes-or-no-p 'y-or-n-p) ;; íå çàñòàâëÿéòå ìåíÿ ïå÷àòü yes öåëèêîì
(setq default-tab-width 5)
(require 'color-theme) ;;ïîäãðóæàåì "ìîäóëü ðàñêðàñêè"
(color-theme-initialize) ;;ïîäãðóçèòü áèáëèîòåêó öâåòîâûõ ñõåì
(color-theme-arjen) ;;âûáðàòü êîíêðåòíóþ ñõåìó
;; ecb
(require 'ecb)
(global-set-key (kbd "\eE") 'ecb-activate)
;; tabs
(require 'tabbar)
(tabbar-mode t)
(global-set-key [(control tab)] 'tabbar-forward) ;; - ïåðåêëþ÷åíèå âïåðåä
(global-set-key [(control shift tab)] 'tabbar-backward) ;; à òåïåðü ðàçâîðà÷èâàåìñÿ íà 180 ãðàäóñîâ - è ñíîâà âïåðåä
;;compilation window shall scroll down
(setq compilation-scroll-output 1)
(global-set-key (kbd "\em") 'user-save-and-make-all)
(global-set-key (kbd "\ek") 'kill-compilation)
;;general compile function call "make all"
(defun user-save-and-make-all ()
"save and call compile as make all"
(interactive)
(save-buffer)
(compile "make all")
(message "make all executed!"))
(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.
'(ecb-compile-window-height 10)
'(ecb-compile-window-temporally-enlarge (quote after-selection))
'(ecb-compile-window-width (quote edit-window))
'(ecb-layout-name "left1")
'(ecb-prescan-directories-for-emptyness nil)
'(ecb-tip-of-the-day nil))
(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.
)