author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 14 Oct 2009 17:20:45 +0300 | |
changeset 183 | 6454364c25cf |
parent 182 | 8a8bf4f3e7c2 |
child 184 | 29dc0658b75d |
child 185 | 9c2934c3d8ca |
child 189 | c3ec8e16a007 |
permissions | -rw-r--r-- |
0 | 1 |
;; -*- mode: lisp; coding: cp1251 -*- |
6 | 2 |
;; |
42
04fd7747bc49
Update copyright notice.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
40
diff
changeset
|
3 |
;; Copyright (C) 2008 by Oleksandr Gavenko <gavenkoa@gmail.com> |
6 | 4 |
;; |
121 | 5 |
;; This file formed from parts and ideas from many sites/docs and |
110
6b6e3f8cb371
Set copyright notice.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
109
diff
changeset
|
6 |
;; placed in public domain. |
6b6e3f8cb371
Set copyright notice.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
109
diff
changeset
|
7 |
;; |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
8 |
;; .emacs file for GNU Emacs. |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
9 |
;; |
111
fcea9d3b79e1
Rename -my{-pre/-post} to {-pre/-post}.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
109
diff
changeset
|
10 |
;; ~/.emacs load this file after ~/.emacs-pre, but before ~/.emacs-post. |
0 | 11 |
|
12 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
13 |
;; Debugging. |
0 | 14 |
|
175
a505ab71060a
Make comment shorter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
174
diff
changeset
|
15 |
;; Shut off message buffer by setting nil. |
0 | 16 |
(setq message-log-max 100) |
17 |
||
18 |
;;(add-hook 'after-init-hook |
|
9 | 19 |
;; '(lambda () (setq debug-on-error t))) |
0 | 20 |
;;(debug-on-entry 'command-line-1) |
21 |
||
22 |
;; Set the debug option to enable a backtrace when a problem occurs. |
|
23 |
(setq debug-on-error nil) ; t/nil |
|
24 |
||
25 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
26 |
;; . |
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
27 |
;; View. |
0 | 28 |
|
151 | 29 |
(menu-bar-mode -1) |
30 |
(tool-bar-mode -1) |
|
31 |
(tooltip-mode -1) |
|
32 |
(scroll-bar-mode 1) |
|
0 | 33 |
|
34 |
(if window-system |
|
35 |
;; X-window Win |
|
36 |
(progn |
|
37 |
;; |
|
38 |
(set-background-color "white") |
|
39 |
(set-foreground-color "black") |
|
40 |
;; |
|
41 |
(set-cursor-color "brown") |
|
42 |
;;(setq blink-matching-delay 0.01) |
|
43 |
;; ! |
|
44 |
;; (blink-cursor-mode nil) |
|
45 |
;; (set-face-font 'default "7x14") |
|
177
b309d63ae93a
Set fringe-mode explicitly.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
176
diff
changeset
|
46 |
(fringe-mode 'default) |
0 | 47 |
) |
48 |
;; tty |
|
49 |
(progn |
|
50 |
) |
|
51 |
) |
|
52 |
||
85 | 53 |
;; ---------------------------------------------------------------------- |
54 |
;; Silent runing. |
|
55 |
||
56 |
;; (setq inhibit-splash-screen t) ; nonexist on 21.4.1 |
|
57 |
(setq inhibit-startup-message t) |
|
58 |
||
59 |
;; ====================================================================== |
|
60 |
;; GNU Serv. |
|
61 |
||
62 |
;; (load "~/emacs/bin/gnuserv/gnuserv.el") |
|
63 |
;; (require 'gnuserv) |
|
64 |
;; (setq gnuserv-frame (selected-frame)) |
|
65 |
||
183
6454364c25cf
Suppress error (error "The directory ~/.emacs.d/server is unsafe") on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
182
diff
changeset
|
66 |
(require 'server) |
6454364c25cf
Suppress error (error "The directory ~/.emacs.d/server is unsafe") on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
182
diff
changeset
|
67 |
(when (and (= emacs-major-version 23) (equal window-system 'w32)) |
6454364c25cf
Suppress error (error "The directory ~/.emacs.d/server is unsafe") on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
182
diff
changeset
|
68 |
(defun server-ensure-safe-dir (dir) "Noop" t)) ; Suppress error directory ~/.emacs.d/server is unsafe on windows. |
6454364c25cf
Suppress error (error "The directory ~/.emacs.d/server is unsafe") on windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
182
diff
changeset
|
69 |
|
85 | 70 |
(server-start) |
71 |
||
72 |
;; (desktop-load-default) |
|
73 |
;; (desktop-read) |
|
74 |
||
0 | 75 |
;; ====================================================================== |
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
76 |
;; Standart settings |
0 | 77 |
|
78 |
(setq kill-whole-line t) |
|
79 |
||
80 |
;; show column & line numbers in status bar |
|
81 |
(setq column-number-mode t) |
|
82 |
(setq line-number-mode t) |
|
83 |
||
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
84 |
(setq view-read-only t) |
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
85 |
|
132
3f6b8e1a3656
Set frame-title-format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
86 |
(setq frame-title-format "Emacs - %b") |
3f6b8e1a3656
Set frame-title-format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
87 |
|
174
87a5496d252c
Added require-final-newline mention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
173
diff
changeset
|
88 |
;; Always end a file with a newline. |
87a5496d252c
Added require-final-newline mention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
173
diff
changeset
|
89 |
;; (setq require-final-newline t) |
87a5496d252c
Added require-final-newline mention.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
173
diff
changeset
|
90 |
|
35
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
91 |
;; ---------------------------------------------------------------------- |
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
92 |
;; Switching, creating, selecting buffers. |
34 | 93 |
(iswitchb-mode 1) |
122
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
94 |
(setq iswitchb-buffer-ignore nil) |
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
95 |
(mapc (lambda (arg) (add-to-list 'iswitchb-buffer-ignore arg)) |
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
96 |
'("^ " |
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
97 |
"^\*Buffer" |
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
98 |
"^\*Completions\*" |
123
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
99 |
"^\*tramp" |
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
100 |
"^\*Dired log\*" |
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
101 |
"^\*Help\*" |
122
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
102 |
"^\*Quail Completions\*" |
123
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
103 |
"^\*Disabled Command\*" |
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
104 |
"^\*vc\*" |
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
105 |
)) |
34 | 106 |
|
35
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
107 |
(require 'uniquify) |
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
108 |
(setq uniquify-buffer-name-style 'post-forward) |
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
109 |
|
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
110 |
(global-set-key "\C-x\C-b" 'buffer-menu) |
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
111 |
|
0 | 112 |
;; ---------------------------------------------------------------------- |
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
113 |
;; Scrolling |
0 | 114 |
|
127 | 115 |
(setq-default |
116 |
;; The number of lines to try scrolling a window by when point moves out. |
|
117 |
scroll-step 1 |
|
118 |
scroll-conservatively 100 |
|
119 |
;; i , |
|
120 |
scroll-margin 2 |
|
121 |
scroll-preserve-screen-position t |
|
122 |
) |
|
123 |
||
124 |
;; ---------------------------------------------------------------------- |
|
0 | 125 |
;; *Text* |
126 |
(setq default-major-mode 'text-mode) |
|
127 |
||
128 |
;; ---------------------------------------------------------------------- |
|
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
129 |
;; syntax highlighting |
0 | 130 |
(setq font-lock-maximum-decoration t) |
131 |
(global-font-lock-mode 1 t) |
|
132 |
||
133 |
;; ---------------------------------------------------------------------- |
|
65
fe5b010623cd
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
64
diff
changeset
|
134 |
;; highlight selected text |
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
135 |
|
145
b1fdfc950089
More correct code for pc-select.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
144
diff
changeset
|
136 |
;; 1/-1, when the mark is active, the region is highlighted. |
b1fdfc950089
More correct code for pc-select.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
144
diff
changeset
|
137 |
(transient-mark-mode 1) |
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
138 |
(delete-selection-mode 1) ; 1/-1 |
80
bfc8c3d03527
Correct code to remove warning in *Messages* when loading .emacs-my.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
139 |
|
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
140 |
;; Order of next item is important. |
145
b1fdfc950089
More correct code for pc-select.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
144
diff
changeset
|
141 |
(require 'pc-select) |
b1fdfc950089
More correct code for pc-select.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
144
diff
changeset
|
142 |
;; To avoid some key bindings as F6, etc. Must set before 'pc-selection-mode' invoke. |
b1fdfc950089
More correct code for pc-select.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
144
diff
changeset
|
143 |
(setq pc-select-selection-keys-only t) |
b1fdfc950089
More correct code for pc-select.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
144
diff
changeset
|
144 |
(pc-selection-mode 1) |
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
145 |
|
146
506d2883199f
kill/yank func also use/update CLIPBOARD selsction on X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
145
diff
changeset
|
146 |
(when (eq window-system 'x) |
506d2883199f
kill/yank func also use/update CLIPBOARD selsction on X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
145
diff
changeset
|
147 |
(setq x-select-enable-clipboard t) ; from Emacs 21.2.1 and newer |
506d2883199f
kill/yank func also use/update CLIPBOARD selsction on X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
145
diff
changeset
|
148 |
) |
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
149 |
|
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
150 |
;; ---------------------------------------------------------------------- |
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
151 |
;; line |
1
30e99e01ddc4
add auto-mode-alist for bat-files and load mercurial
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
0
diff
changeset
|
152 |
(if window-system |
0 | 153 |
(progn |
154 |
(global-hl-line-mode t) |
|
155 |
(custom-set-faces '(hl-line ((t (:inherit highlight :background "light yellow"))))) |
|
156 |
) |
|
157 |
) |
|
158 |
||
159 |
;; ---------------------------------------------------------------------- |
|
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
160 |
;; paren, brace |
0 | 161 |
|
162 |
(show-paren-mode 1) ; Parenthesis matching via highlighting. |
|
163 |
;; (setq show-paren-style 'expression) ; |
|
164 |
(setq show-paren-style (quote parenthesis)) |
|
165 |
||
166 |
;; ====================================================================== |
|
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
167 |
;; Keyboard, mouse. |
0 | 168 |
|
52
b0b45dae5d8c
Now C-\ switch to win type keyboard layout.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
51
diff
changeset
|
169 |
;; cyrillic-jcuken for 567 is :,. |
b0b45dae5d8c
Now C-\ switch to win type keyboard layout.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
51
diff
changeset
|
170 |
;; russian-computer for 567 is %^& |
113
78dfaf5e7f04
cyrillic-jcuken is more pretty input method!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
112
diff
changeset
|
171 |
(setq default-input-method 'cyrillic-jcuken) |
52
b0b45dae5d8c
Now C-\ switch to win type keyboard layout.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
51
diff
changeset
|
172 |
|
0 | 173 |
;; (pc-bindings-mode) ; Myself define keybinding, see |
174 |
||
175 |
;; ---------------------------------------------------------------------- |
|
176 |
;; Completition |
|
177 |
(partial-completion-mode t) ; For example, M-x p-c-m expands to M-x partial-completion-mode |
|
178 |
||
179 |
;; ---------------------------------------------------------------------- |
|
180 |
;; Mouse |
|
181 |
||
182 |
;; Scroll Bar gets dragged by mouse butn 1 |
|
183 |
(global-set-key [vertical-scroll-bar down-mouse-1] 'scroll-bar-drag) |
|
184 |
;; Paste at point NOT at cursor |
|
151 | 185 |
(setq mouse-yank-at-point t) |
0 | 186 |
(mouse-wheel-mode 1) |
187 |
||
188 |
;; ---------------------------------------------------------------------- |
|
189 |
;; Key Binding (Short-keys). |
|
190 |
||
191 |
(global-set-key [home] 'beginning-of-line) |
|
192 |
(global-set-key [end] 'end-of-line) |
|
193 |
(global-set-key [C-home] 'beginning-of-buffer) |
|
194 |
(global-set-key [C-end] 'end-of-buffer) |
|
195 |
(global-set-key [C-delete] 'kill-word) |
|
196 |
(global-set-key [delete] 'delete-char) |
|
197 |
;; (global-set-key [backspace] 'backward-delete-char-untabify) ; not work properly in *info* mode |
|
198 |
||
199 |
;; setting some f[1-12] keys |
|
200 |
(global-set-key [f1] 'help) |
|
201 |
(global-set-key [f2] 'save-buffer) |
|
2
98c662ae8707
Incremental search by F3, decr by S-F3 now. Impruved grep-find search.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
1
diff
changeset
|
202 |
;; (global-set-key [xxx] 'ediff-buffers) |
0 | 203 |
(global-set-key [f4] 'ispell-buffer) |
134
a071b60e4339
Set key binding to rename buffer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
125
diff
changeset
|
204 |
(global-set-key [S-f6] 'rename-buffer) |
0 | 205 |
(global-set-key [f8] 'kill-this-buffer) |
206 |
(global-set-key [M-f4] 'save-buffers-kill-emacs) |
|
18
91626ebef652
Added hotkey for wrap long line.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
17
diff
changeset
|
207 |
(global-set-key [f6] 'toggle-truncate-lines) |
0 | 208 |
|
209 |
;; *Occur* |
|
115
859e177e9ab8
Remove f3 keybinding as has C-s <ret>. f7 set to occur.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
114
diff
changeset
|
210 |
(global-set-key [f7] 'occur) ; Key binding as in mc |
0 | 211 |
|
212 |
;; frames, windows manipulation, switch buffers |
|
213 |
(global-set-key [?\C-x right] 'next-buffer) |
|
214 |
(global-set-key [?\C-x left] 'previous-buffer) |
|
215 |
||
8
c33aa66ebb2e
Added highlight for TODO, FIXME, tabs etc.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
7
diff
changeset
|
216 |
(global-set-key (kbd "C-x C-d") 'dired) |
c33aa66ebb2e
Added highlight for TODO, FIXME, tabs etc.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
7
diff
changeset
|
217 |
|
0 | 218 |
(global-set-key (kbd "\e\eg") 'goto-line) |
219 |
(global-set-key (kbd "\e\er") 'query-replace-regexp) |
|
220 |
||
81
0ce6eaf6f26c
Disable C-z, it ugly.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
80
diff
changeset
|
221 |
;; Disable C-z, it ugly. |
0ce6eaf6f26c
Disable C-z, it ugly.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
80
diff
changeset
|
222 |
(if window-system (global-set-key (kbd "C-z") 'nil)) |
0ce6eaf6f26c
Disable C-z, it ugly.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
80
diff
changeset
|
223 |
|
0 | 224 |
;; (global-set-key [language-change] 'ignore) |
225 |
||
226 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
227 |
;; Coding system, charset, locale, lang. |
80
bfc8c3d03527
Correct code to remove warning in *Messages* when loading .emacs-my.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
228 |
|
162
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
229 |
;; Emacs 23.1 no longer need codepage-setup. |
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
230 |
(when (<= emacs-major-version 22) |
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
231 |
(codepage-setup 866) |
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
232 |
(codepage-setup 1251) |
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
233 |
) |
0 | 234 |
|
53 | 235 |
;; Comment because prefer-coding-system will be ignored. |
236 |
;; (setq-default coding-system-for-read 'cp1251-dos) |
|
237 |
;; (setq-default coding-system-for-write 'cp1251-dos) |
|
0 | 238 |
|
239 |
;; (setq locale-coding-system 'cp1251-dos) |
|
240 |
;; (set-terminal-coding-system 'cp1251) |
|
241 |
;; (set-keyboard-coding-system 'cp1251) |
|
242 |
||
243 |
(prefer-coding-system 'koi8-r-dos) |
|
244 |
(prefer-coding-system 'utf-16-le) |
|
245 |
(prefer-coding-system 'cp866-dos) |
|
4
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
246 |
|
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
247 |
(modify-coding-system-alist 'file "\\.el" 'iso-2022-7bit) |
106
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
248 |
(cond |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
249 |
((equal window-system 'w32) ; also (string-equal system-type "windows-nt") |
4
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
250 |
(progn |
106
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
251 |
(set-selection-coding-system 'cp1251) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
252 |
(prefer-coding-system 'utf-8-unix) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
253 |
(prefer-coding-system 'cp1251-dos) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
254 |
)) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
255 |
((equal window-system 'x) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
256 |
(progn |
4
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
257 |
(prefer-coding-system 'cp1251-dos) |
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
258 |
(prefer-coding-system 'utf-8-unix) |
106
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
259 |
(setq selection-coding-system 'ctext-with-extensions) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
260 |
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)) |
4
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
261 |
(modify-coding-system-alist 'process ".*" 'utf-8-unix) |
106
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
262 |
)) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
263 |
(t |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
264 |
(progn |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
265 |
;; (set-selection-coding-system 'utf-8-unix) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
266 |
(prefer-coding-system 'cp1251-dos) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
267 |
(prefer-coding-system 'utf-8-unix) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
268 |
(modify-coding-system-alist 'process ".*" 'utf-8-unix) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
269 |
)) |
4
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
270 |
) |
0 | 271 |
|
272 |
;; XXXXXXXXXXXXXXXXXXXXXXXX |
|
273 |
||
274 |
;; To open from command line file, which names has extended opcode |
|
275 |
;; (set-file-name-coding-system 'cp1251) |
|
276 |
||
52
b0b45dae5d8c
Now C-\ switch to win type keyboard layout.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
51
diff
changeset
|
277 |
;; (set-language-environment "Russian") ; XXX not used as set default coding system to koi8-r. |
0 | 278 |
|
279 |
;; ====================================================================== |
|
280 |
;; |
|
281 |
;; NON-STANDARD VARIABLES |
|
282 |
||
283 |
;; ====================================================================== |
|
284 |
;; |
|
285 |
;; STANDARD VARIABLES |
|
286 |
||
287 |
(if (boundp 'confirm-kill-emacs) |
|
288 |
(setq confirm-kill-emacs 'yes-or-no-p)) |
|
289 |
||
290 |
;; Try to speed things up, especially in VM. |
|
291 |
(setq gc-cons-threshold 2000000) |
|
292 |
||
293 |
;; Don't beep in my headphones! |
|
84 | 294 |
(setq ring-bell-function '(lambda () "Empty ring-bell-function." nil)) |
295 |
(setq visible-bell t) ; With default ring-bell-function in text terminal |
|
296 |
; revert screen if press [end] or [home] |
|
0 | 297 |
|
298 |
;; Prompt before evaluating local bits of lisp. This stops people |
|
299 |
;; putting things at the end of files which delete all your files! |
|
300 |
(setq enable-local-variables t |
|
301 |
enable-local-eval 1) |
|
302 |
||
303 |
;; ====================================================================== |
|
304 |
;; |
|
305 |
;; STANDARD LIBRARIES |
|
306 |
||
307 |
(require 'jka-compr) ; Automatic decompression, hooks for tar-mode. |
|
308 |
(if (fboundp 'auto-compression-mode) |
|
309 |
(auto-compression-mode 1)) |
|
310 |
||
311 |
;; ---------------------------------------------------------------------- |
|
312 |
;; *Recentf* |
|
109
75b4bf140e73
Prevent TRAMP to login on remote host when loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
108
diff
changeset
|
313 |
|
0 | 314 |
(require 'recentf) |
109
75b4bf140e73
Prevent TRAMP to login on remote host when loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
108
diff
changeset
|
315 |
;; Prevent TRAMP to login on remote host when loading. |
75b4bf140e73
Prevent TRAMP to login on remote host when loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
108
diff
changeset
|
316 |
;; Its take time and ask passwords! |
75b4bf140e73
Prevent TRAMP to login on remote host when loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
108
diff
changeset
|
317 |
(setq recentf-auto-cleanup 'never) |
0 | 318 |
(recentf-mode t) |
319 |
(setq recentf-max-saved-items 200) |
|
320 |
(global-set-key (kbd "\e\eq") 'recentf-open-files) |
|
321 |
||
322 |
;; ---------------------------------------------------------------------- |
|
323 |
;; revert |
|
324 |
(global-set-key [f5] 'revert-buffer) |
|
325 |
(setq revert-without-query (quote (".*"))) |
|
326 |
(setq auto-revert-interval 2) |
|
327 |
||
328 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
329 |
;; Convenient |
0 | 330 |
|
331 |
;; ---------------------------------------------------------------------- |
|
332 |
;; Completion |
|
153
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
333 |
|
0 | 334 |
(require 'icomplete) ; Interactive completion in minibuffer. |
153
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
335 |
(icomplete-mode 1) |
0 | 336 |
|
153
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
337 |
(setq completion-ignored-extensions |
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
338 |
'("CVS/" ".hg/" ".svn/" ".git/" ".bzr/" |
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
339 |
".o" "~" ".bin" ".bak" ".obj" ".map" ".a" ".ln" ".blg" ".bbl" ".elc" |
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
340 |
".lof" ".glo" ".idx" ".lot" ".fmt" ".tfm" ".class" ".fas" ".lib" ".x86f" ".sparcf" |
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
341 |
".lo" ".la" ".toc" ".log" ".aux" ".cp" ".fn" ".ky" ".pg" ".tp" ".vr" ".cps" |
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
342 |
".fns" ".kys" ".pgs" ".tps" ".vrs")) |
0 | 343 |
|
344 |
;; ---------------------------------------------------------------------- |
|
345 |
;; *grep* |
|
346 |
(setq grep-command "find . -name '*' -exec grep -nH '' {} ;" |
|
88 | 347 |
grep-find-command "find . '(' -name .svn -o -name CVS -o -name .hg -o -name _darcs ')' -prune -o -type f -name '*' -print0 | xargs -0 -e grep -nH " |
5
ddf0660702ec
Correct work grep-find for grep then do not understand --color.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
4
diff
changeset
|
348 |
grep-highlight-matches nil ; do not set t because some grep do not has --color options |
0 | 349 |
grep-tree-command "find <D> <X> -type f <F> -print0 | xargs -0 -e grep <C> -nH <R>" |
350 |
grep-use-null-device t) |
|
351 |
(setq blink-matching-paren-on-screen t) |
|
352 |
||
353 |
;; ---------------------------------------------------------------------- |
|
354 |
;; Music |
|
355 |
(setq gnus-audio-au-player "winamp.exe" |
|
356 |
gnus-audio-directory "D:\\music" |
|
357 |
gnus-audio-wav-player "winamp.exe") |
|
358 |
||
97
fe4102cad849
Open egg files as archive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
359 |
;; ---------------------------------------------------------------------- |
fe4102cad849
Open egg files as archive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
360 |
;; archive |
fe4102cad849
Open egg files as archive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
361 |
|
fe4102cad849
Open egg files as archive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
362 |
(modify-coding-system-alist 'file "\\.\\(war\\|ear\\|sar\\|egg\\)\\'" 'no-conversion) |
fe4102cad849
Open egg files as archive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
363 |
|
fe4102cad849
Open egg files as archive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
364 |
(add-to-list 'auto-mode-alist '("\\.\\(war\\|ear\\|sar\\|egg\\)\\'" . archive-mode)) |
0 | 365 |
|
98
5223817dad90
Use mozilla browser. Not tested for Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
97
diff
changeset
|
366 |
;; ---------------------------------------------------------------------- |
5223817dad90
Use mozilla browser. Not tested for Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
97
diff
changeset
|
367 |
;; browser |
5223817dad90
Use mozilla browser. Not tested for Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
97
diff
changeset
|
368 |
|
138
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
369 |
(cond |
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
370 |
((equal window-system 'w32) |
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
371 |
(setq browse-url-browser-function 'browse-url-default-windows-browser)) |
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
372 |
(t |
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
373 |
(setq browse-url-browser-function 'browse-url-mozilla))) |
98
5223817dad90
Use mozilla browser. Not tested for Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
97
diff
changeset
|
374 |
|
0 | 375 |
;; ====================================================================== |
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
376 |
;; TIME SETTING |
0 | 377 |
|
378 |
;; ---------------------------------------------------------------------- |
|
379 |
;; Time |
|
116 | 380 |
|
120
5b02710b7ffc
display-time-format " %H:%M " sometimes buggy.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
119
diff
changeset
|
381 |
;; Also useful such format: |
5b02710b7ffc
display-time-format " %H:%M " sometimes buggy.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
119
diff
changeset
|
382 |
;; (setq display-time-format " %H:%M %d-%m-%y ") |
125
8d96347feb02
Dont show load average.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
124
diff
changeset
|
383 |
(setq display-time-24hr-format t) |
8d96347feb02
Dont show load average.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
124
diff
changeset
|
384 |
(setq display-time-default-load-average nil) |
116 | 385 |
(display-time) |
0 | 386 |
|
387 |
;; ---------------------------------------------------------------------- |
|
388 |
;; Calendar |
|
389 |
;; (setq mark-holidays-in-calendar t) |
|
390 |
;; (setq all-christian-calendar-holidays t) |
|
391 |
;; (setq calendar-date-display-form (quote ((format "%04s-%02d-%02d" year (string-to-int month) (string-to-int day))))) |
|
392 |
;; (setq calendar-time-display-form (quote (24-hours ":" minutes (if time-zone " (") time-zone (if time-zone ")")))) |
|
49
71cec5d9c60f
Set week start with Monday.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
48
diff
changeset
|
393 |
(setq calendar-week-start-day 1) |
71cec5d9c60f
Set week start with Monday.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
48
diff
changeset
|
394 |
(setq european-calendar-style t) |
0 | 395 |
|
396 |
;; ====================================================================== |
|
397 |
;; |
|
398 |
;; STANDARD HOOKS |
|
399 |
||
400 |
(add-hook 'write-file-hooks 'time-stamp) |
|
401 |
||
402 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
403 |
;; *auto-fill* |
0 | 404 |
|
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
405 |
(setq-default fill-column 78) |
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
406 |
|
148
7df64d2c9f3d
Remove unused key binding. Added more docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
147
diff
changeset
|
407 |
;; By default used American convention - sentence and with two spaces. Change |
7df64d2c9f3d
Remove unused key binding. Added more docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
147
diff
changeset
|
408 |
;; it to one space. Has affect on filling and M-a, M-e commands. |
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
409 |
(setq sentence-end-double-space nil) |
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
410 |
|
0 | 411 |
;; Turn on auto-fill mode |
412 |
(add-hook 'html-mode-hook 'turn-on-auto-fill) |
|
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
413 |
(add-hook 'text-mode-hook 'turn-on-auto-fill) |
0 | 414 |
|
415 |
;; ---------------------------------------------------------------------- |
|
416 |
;; DESIRE |
|
417 |
||
418 |
;; (require 'desire) |
|
419 |
||
420 |
;; (add-to-list 'desire-load-path |
|
9 | 421 |
;; (expand-file-name "~/share/emacs/desire")) |
0 | 422 |
;; (add-to-list 'auto-mode-alist |
9 | 423 |
;; (cons (concat (regexp-quote desire-extension) "\\'") |
424 |
;; 'emacs-lisp-mode)) |
|
0 | 425 |
|
426 |
;; ---------------------------------------------------------------------- |
|
427 |
||
428 |
;; Pilot support |
|
429 |
;; (desire 'pilot) |
|
430 |
||
431 |
;; ---------------------------------------------------------------------- |
|
432 |
||
433 |
;; BBDB - Must be loaded before most other things, since other things |
|
434 |
;; may perform special configuration if BBDB is present. |
|
435 |
;; |
|
436 |
;; (desire 'bbdb "bbdb") |
|
437 |
||
438 |
;; ---------------------------------------------------------------------- |
|
439 |
||
440 |
;; These provide options for the various message handling packages. |
|
441 |
;; (desire 'browse-url) |
|
442 |
;; (desire 'mailcrypt) |
|
443 |
||
444 |
;; Message handing packages. |
|
445 |
;; (desire 'gnus) |
|
446 |
;; (desire 'message) |
|
447 |
;; (desire 'sendmail) |
|
448 |
||
449 |
;; ---------------------------------------------------------------------- |
|
450 |
||
451 |
;; Miscellaneous |
|
452 |
||
453 |
;; (desire 'abbrev) |
|
454 |
;; (desire 'bibtex) |
|
455 |
;; (desire 'calc) |
|
456 |
;; (desire 'ediff) |
|
457 |
;; (desire 'eiffel-mode) |
|
458 |
;; (desire 'emacs-w3m) |
|
459 |
;; (desire 'eudc) |
|
460 |
;; (desire 'filladapt) |
|
461 |
;;;; (desire 'hugs-mode) |
|
462 |
;; (desire 'haskell-mode) |
|
463 |
;; (desire 'latex) |
|
464 |
;; (desire 'lispdir) |
|
465 |
;; (desire 'mpg123) |
|
466 |
;; (desire 'php-mode) |
|
467 |
;; (desire 'ps-print) |
|
468 |
;; (desire 'sh-script) |
|
469 |
;; (desire 'shell) |
|
470 |
;; (desire 'tex) |
|
471 |
;; (desire 'w3) |
|
472 |
||
473 |
;; ====================================================================== |
|
474 |
;; |
|
475 |
;; PERSONAL |
|
476 |
||
477 |
;; (require 'chord-mode) ; edit guitar music. |
|
478 |
;; (require 'discography) ; variant of BibTeX mode for discographies. |
|
479 |
||
480 |
;; ====================================================================== |
|
481 |
;; unNOVICEd commands... |
|
482 |
;; |
|
154 | 483 |
;; The following commands are usually disabled by default. Enable them... |
0 | 484 |
|
485 |
(put 'eval-expression 'disabled nil) |
|
486 |
(put 'downcase-region 'disabled nil) |
|
487 |
(put 'upcase-region 'disabled nil) |
|
488 |
(put 'narrow-to-page 'disabled nil) |
|
489 |
(put 'narrow-to-region 'disabled nil) |
|
490 |
||
491 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
492 |
;; TEX |
0 | 493 |
(setq tex-run-command "initex") |
494 |
||
495 |
||
496 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
497 |
;; AUC TeX |
0 | 498 |
|
499 |
;(add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar) |
|
500 |
;; (setq TeX-parse-self t) ; Enable parse on load. |
|
501 |
;; (setq TeX-auto-save t) ; Enable parse on save. |
|
502 |
;; (setq-default TeX-master nil) ; Query for master file. Finally, if you often use \include or \input, you should make AUCTEX aware of the multi-file document structure |
|
503 |
||
504 |
;(setq TeX-PDF-mode t) |
|
505 |
;(setq TeX-interactive-mode t) |
|
506 |
;(setq TeX-source-specials-mode 1) |
|
507 |
||
508 |
;; |
|
509 |
;;; some more menu entries in the command list: |
|
510 |
;;; see tex-mik.el from package auctex: %v is defined in tex-mik.el |
|
511 |
;;; other variables are defined in tex.el from auctex |
|
512 |
;;; the meaning of some auctex-varibles: |
|
513 |
;symbols defined in tex.el and tex-mik.el: |
|
514 |
;%b name slave tex-file %t name master tex-file |
|
515 |
;%d dvi-file %f ps-file |
|
516 |
;%l "latex --src-specials" |
|
517 |
;%n line number %p printcommand %q "lpq" |
|
518 |
;%r (TeX-style-check TeX-print-style) |
|
519 |
;%s master-file-name without extention |
|
520 |
;%v yap command view line |
|
521 |
;(eval-after-load "tex" |
|
522 |
; '(progn |
|
523 |
; (add-to-list 'TeX-command-list |
|
9 | 524 |
; (list "->PS landscape for pdf" |
525 |
; "dvips %d -N0 -Ppdf -G0 -T 297mm,210mm -o %f " |
|
526 |
; 'TeX-run-command nil t)) |
|
0 | 527 |
; (add-to-list 'TeX-command-list |
9 | 528 |
; (list "All Texify run-viewer" |
529 |
; "texify --tex-opt=--src --run-viewer --clean %s.tex" |
|
530 |
; 'TeX-run-command nil t)))) |
|
0 | 531 |
|
532 |
||
533 |
;; ====================================================================== |
|
534 |
;; |
|
535 |
;; Reftex activation (Reftex is included with Emacs 21.1) |
|
536 |
||
537 |
;; (autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t) |
|
538 |
;; (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil) |
|
539 |
;; (autoload 'reftex-citation "reftex-cite" "Make citation" nil) |
|
540 |
;; (autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t) |
|
541 |
;; (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode |
|
542 |
;; (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode |
|
543 |
||
544 |
;; ====================================================================== |
|
545 |
;; |
|
546 |
;; PreviewLatex |
|
547 |
||
548 |
;(load "preview-latex.el" nil t t) |
|
549 |
||
550 |
;(add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) |
|
551 |
;(autoload 'LaTeX-preview-setup "preview") |
|
552 |
||
553 |
||
554 |
;; ====================================================================== |
|
555 |
;; |
|
556 |
;; Info |
|
557 |
||
558 |
(require 'info) |
|
25
e67fed7ec1f2
Определил путь к info-файлам для Windows.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
24
diff
changeset
|
559 |
(if (equal window-system 'w32) |
e67fed7ec1f2
Определил путь к info-файлам для Windows.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
24
diff
changeset
|
560 |
(progn |
141
c88281ec188e
Temporary comment Info-directory-list assignment for Windows. Need more
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
140
diff
changeset
|
561 |
;; TODO Write which func to find runemacs.exe dir. |
c88281ec188e
Temporary comment Info-directory-list assignment for Windows. Need more
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
140
diff
changeset
|
562 |
;; (setq Info-directory-list (list (expand-file-name "~/../bin/emacs/info"))) |
c88281ec188e
Temporary comment Info-directory-list assignment for Windows. Need more
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
140
diff
changeset
|
563 |
;; (add-to-list 'Info-directory-list (expand-file-name "~/../bin/MinGW/info") t) ; t - append to the end |
25
e67fed7ec1f2
Определил путь к info-файлам для Windows.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
24
diff
changeset
|
564 |
)) |
0 | 565 |
|
566 |
;; ====================================================================== |
|
156
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
567 |
;; man, woman |
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
568 |
(require 'woman) |
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
569 |
(setq woman-use-own-frame nil) |
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
570 |
(setq woman-fill-frame t) |
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
571 |
|
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
572 |
;; ====================================================================== |
0 | 573 |
;; |
574 |
;; SHELL |
|
575 |
||
576 |
;; If you plan to use the bash shell, add the following lines to your .emacs file: |
|
577 |
;; (setq binary-process-input t) |
|
578 |
;; (setq w32-quote-process-args ?\") |
|
579 |
;; (setq shell-file-name "bash") ;; or sh if you rename your bash executable to sh. |
|
580 |
;; (setenv "SHELL" shell-file-name) |
|
581 |
;; (setq explicit-shell-file-name shell-file-name) |
|
582 |
;; (setq explicit-sh-args '("-login" "-i")) |
|
583 |
||
584 |
;; Include the following only if you want to run |
|
585 |
;; bash as your shell. |
|
586 |
||
587 |
;; Setup Emacs to run bash as its primary shell. |
|
588 |
;; (setq shell-file-name "bash") |
|
589 |
;; (setq shell-command-switch "-c") |
|
590 |
;; (setq explicit-shell-file-name shell-file-name) |
|
591 |
;; (setenv "SHELL" shell-file-name) |
|
592 |
;; (setq explicit-sh-args '("-login" "-i")) |
|
593 |
;; (if (boundp 'w32-quote-process-args) |
|
594 |
;; (setq w32-quote-process-args ?\")) ;; Include only for MS Windows. |
|
595 |
||
596 |
;; (setq sh-shell-file "D:\\home\\cygwin\\bin\\sh.exe") |
|
597 |
;; (setq sh-shell-arg (quote ((bash) (csh . "-f") (pdksh) (ksh88) (rc . "-p") (wksh) (zsh . "-f") (sh . "-i")))) |
|
598 |
(setq explicit-bash-args (quote ("-login" "-i"))) |
|
1
30e99e01ddc4
add auto-mode-alist for bat-files and load mercurial
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
0
diff
changeset
|
599 |
|
117
e8fec75adcd6
Set .bat file association if bat-mode provided.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
116
diff
changeset
|
600 |
(when (provide 'bat-mode) |
e8fec75adcd6
Set .bat file association if bat-mode provided.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
116
diff
changeset
|
601 |
(progn |
e8fec75adcd6
Set .bat file association if bat-mode provided.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
116
diff
changeset
|
602 |
(add-to-list 'auto-mode-alist '("\\.[bB][aA][tT]$" . bat-mode)) |
e8fec75adcd6
Set .bat file association if bat-mode provided.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
116
diff
changeset
|
603 |
;; For DOS init files |
118
27add777f357
Correct bat-mode auto-mode-alist.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
117
diff
changeset
|
604 |
(when (equal window-system 'w32) |
27add777f357
Correct bat-mode auto-mode-alist.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
117
diff
changeset
|
605 |
(add-to-list 'auto-mode-alist '("CONFIG\\." . bat-mode)) |
119 | 606 |
(add-to-list 'auto-mode-alist '("AUTOEXEC\\." . bat-mode))))) |
0 | 607 |
|
608 |
;; ====================================================================== |
|
609 |
;; |
|
610 |
;; Spell |
|
611 |
||
105
52a334c6c908
As spell programm use ispell.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
104
diff
changeset
|
612 |
(setq ispell-program-name "ispell") |
0 | 613 |
;(setq ispell-dictionary "russianw"); default dictionary |
614 |
;(setq ispell-local-dictionary "russianw"); default dictionary |
|
615 |
;(add-hook 'text-mode-hook 'flyspell-mode) |
|
616 |
;(setq flyspell-default-dictionary "russianw") |
|
617 |
;(setq flyspell-delay '1) |
|
618 |
;; (setq ispell-local-dictionary-alist |
|
9 | 619 |
;; '((nil ; default (english.aff) |
0 | 620 |
;; "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1) |
9 | 621 |
;; ("UK-xlg" ; english large version |
0 | 622 |
;; "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B" "-d" "UK-xlg") nil iso-8859-1) |
9 | 623 |
;; ("US-xlg" ; american large version |
0 | 624 |
;; "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B" "-d" "US-xlg") nil iso-8859-1) |
625 |
;; ) |
|
626 |
;; ) |
|
627 |
||
628 |
;; ====================================================================== |
|
67
33caed66cee4
Set align for org-mode tags.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
66
diff
changeset
|
629 |
;; GTD, PIM, organize, todo mode. |
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
630 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
631 |
;; ---------------------------------------------------------------------- |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
632 |
;; org-mode |
79
f80cd58e09cb
Use buildin and installed version of org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
78
diff
changeset
|
633 |
|
108
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
634 |
(if (>= emacs-major-version 22) |
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
635 |
(progn |
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
636 |
(require 'org) |
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
637 |
)) |
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
638 |
|
57
635e1a8a3ed9
Remove org-todo-keywords because of format incompatibility between versions.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
56
diff
changeset
|
639 |
;; XXX org-todo-keywords '((sequence "TODO" "START" "|" "DONE")) org-version 4.67c |
60
eb8bd05481a8
Размышления о том как устанавливается org-todo-keywords.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
59
diff
changeset
|
640 |
;; XXX (setq org-todo-keywords '("TODO" "START" "DONE")) org-version 6.05b |
79
f80cd58e09cb
Use buildin and installed version of org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
78
diff
changeset
|
641 |
(if (or (featurep 'org) (featurep 'org-install)) |
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
642 |
(progn |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
643 |
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) |
66
661801050393
Store all org-mode file in .gtd dirs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
65
diff
changeset
|
644 |
(setq org-directory (expand-file-name "~/.gtd")) |
661801050393
Store all org-mode file in .gtd dirs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
65
diff
changeset
|
645 |
(setq org-default-notes-file (expand-file-name "~/.gtd/notes")) |
74
55deb80345ab
Some enhancement for org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
73
diff
changeset
|
646 |
(setq org-agenda-ndays 14 |
55deb80345ab
Some enhancement for org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
73
diff
changeset
|
647 |
org-deadline-warning-days 7 |
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
648 |
org-agenda-show-all-dates t |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
649 |
org-agenda-skip-deadline-if-done t |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
650 |
org-agenda-skip-scheduled-if-done t |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
651 |
org-agenda-start-on-weekday nil |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
652 |
org-reverse-note-order t |
74
55deb80345ab
Some enhancement for org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
73
diff
changeset
|
653 |
org-hide-leading-stars t |
67
33caed66cee4
Set align for org-mode tags.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
66
diff
changeset
|
654 |
org-tags-column 64 |
33caed66cee4
Set align for org-mode tags.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
66
diff
changeset
|
655 |
) |
69
754d413dcff2
Aded global key binding for GTD.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
68
diff
changeset
|
656 |
(define-key global-map "\C-ca" 'org-agenda) |
66
661801050393
Store all org-mode file in .gtd dirs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
65
diff
changeset
|
657 |
(setq org-agenda-files '("~/.gtd/todo.org")) )) |
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
658 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
659 |
;; ---------------------------------------------------------------------- |
68 | 660 |
;; remember-mode |
661 |
(if (featurep 'remember) |
|
662 |
(progn |
|
663 |
(setq remember-annotation-functions '(org-remember-annotation)) |
|
664 |
(setq remember-handler-functions '(org-remember-handler)) |
|
665 |
(add-hook 'remember-mode-hook 'org-remember-apply-template) |
|
69
754d413dcff2
Aded global key binding for GTD.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
68
diff
changeset
|
666 |
(define-key global-map "\C-cr" 'org-remember) |
68 | 667 |
(setq org-remember-templates |
76
3b9b47be4951
With one item emacs do not prompt choose template.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
668 |
;; With one item emacs do not prompt choose template. |
70
e0962e157772
Correct path to GTD files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
69
diff
changeset
|
669 |
'((?t "* TODO %?" "~/.gtd/todo.org") |
76
3b9b47be4951
With one item emacs do not prompt choose template.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
670 |
;; (?j "* %^{topic}\n %T\n" "~/.gtd/journal.org") |
72
03586585c558
Move customization to right place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
70
diff
changeset
|
671 |
)) |
03586585c558
Move customization to right place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
70
diff
changeset
|
672 |
(setq |
03586585c558
Move customization to right place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
70
diff
changeset
|
673 |
org-remember-store-without-prompt t |
03586585c558
Move customization to right place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
70
diff
changeset
|
674 |
) )) |
68 | 675 |
|
676 |
;; ---------------------------------------------------------------------- |
|
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
677 |
;; TODO, XXX, FIXME highlight. |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
678 |
;; Show blanks and FIXME |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
679 |
;; http://www.emacswiki.org/cgi-bin/wiki/EightyColumnRule |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
680 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
681 |
(defface my-tab-face |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
682 |
'((t :background "gray")) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
683 |
"Face for showing TABs." |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
684 |
:group 'basic-faces) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
685 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
686 |
(defface my-todo-face |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
687 |
'((t :foreground "red" :weight bold)) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
688 |
"Font for showing TODO words." |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
689 |
:group 'basic-faces) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
690 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
691 |
(defface my-conflict-face |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
692 |
'((t :background "pink" :foreground "red" :weight bold)) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
693 |
"Font for showing conflicts." |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
694 |
:group 'basic-faces) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
695 |
|
144
41a4cd881b9e
Added makfile-mode to list for highlighting TABs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
696 |
(defvar my-devel-mode-list |
41a4cd881b9e
Added makfile-mode to list for highlighting TABs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
697 |
'(sh-mode script-mode java-mode c-mode outline-mode text-mode |
41a4cd881b9e
Added makfile-mode to list for highlighting TABs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
698 |
lisp-mode makefile-mode makefile-gmake-mode python-mode) |
41a4cd881b9e
Added makfile-mode to list for highlighting TABs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
699 |
"List of development modes." ) |
41a4cd881b9e
Added makfile-mode to list for highlighting TABs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
700 |
|
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
701 |
(add-hook 'font-lock-mode-hook (function (lambda () |
137
d86c2e8f0e36
Highlight TODO and FIXME only in desired modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
136
diff
changeset
|
702 |
(when (or |
144
41a4cd881b9e
Added makfile-mode to list for highlighting TABs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
703 |
(member major-mode my-devel-mode-list) |
137
d86c2e8f0e36
Highlight TODO and FIXME only in desired modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
136
diff
changeset
|
704 |
) |
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
705 |
(font-lock-add-keywords nil |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
706 |
'( |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
707 |
("\t+" 0 'my-tab-face t) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
708 |
("\\<\\(FIXME:?\\|XXX:?\\|TODO:?\\)\\>" 1 'my-todo-face t) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
709 |
("\\(=\\{7,\\}\\|<\\{7,\\}\\|>\\{7,\\}\\)" 1 'my-conflict-face t) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
710 |
)))))) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
711 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
712 |
;; ====================================================================== |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
713 |
;; communication |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
714 |
|
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
715 |
;; ---------------------------------------------------------------------- |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
716 |
;; jabber |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
717 |
(when (featurep 'jabber) |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
718 |
(setq jabber-history-enabled t |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
719 |
jabber-use-global-history nil |
100
32ebaed8d92e
View more logs in jabber.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
99
diff
changeset
|
720 |
jabber-backlog-number 15 |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
721 |
jabber-backlog-days 30 |
124
9ae30ccad707
Dont splash by message "Some one go Away" by jabber.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
123
diff
changeset
|
722 |
jabber-alert-presence-message-function (lambda (who oldstatus newstatus statustext) nil) |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
723 |
) |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
724 |
) |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
725 |
|
182
8a8bf4f3e7c2
Correctly set fsm var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
181
diff
changeset
|
726 |
;; fsm used in emacs jabber |
8a8bf4f3e7c2
Correctly set fsm var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
181
diff
changeset
|
727 |
(when (featurep 'fsm) |
8a8bf4f3e7c2
Correctly set fsm var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
181
diff
changeset
|
728 |
(setq fsm-debug nil) ; Disable *fsm-debug* buffer. |
8a8bf4f3e7c2
Correctly set fsm var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
181
diff
changeset
|
729 |
) |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
730 |
|
142
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
731 |
;; ---------------------------------------------------------------------- |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
732 |
;; rcirc |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
733 |
|
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
734 |
;; Turn on logging everything to a special buffer, for debugging. |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
735 |
;; (setq rcirc-debug-flag t) |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
736 |
|
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
737 |
(add-hook 'rcirc-mode-hook (lambda () (rcirc-track-minor-mode 1))) |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
738 |
(setq rcirc-time-format "%H:%M ") |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
739 |
(defun rcirc-handler-301 (process cmd sender args) |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
740 |
"/away message handler.") |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
741 |
|
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
742 |
;; ====================================================================== |
0 | 743 |
;; VCS, version control, cvs, svn. |
744 |
||
30
762d326dca54
Now .emacs only contain emacs custom settings and load my lisp code from separate file.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
29
diff
changeset
|
745 |
(if (equal window-system 'w32) |
762d326dca54
Now .emacs only contain emacs custom settings and load my lisp code from separate file.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
29
diff
changeset
|
746 |
(progn |
762d326dca54
Now .emacs only contain emacs custom settings and load my lisp code from separate file.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
29
diff
changeset
|
747 |
(modify-coding-system-alist 'process "cvs" '(cp1251-dos . cp1251-dos)) |
762d326dca54
Now .emacs only contain emacs custom settings and load my lisp code from separate file.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
29
diff
changeset
|
748 |
(modify-coding-system-alist 'process "svn" '(cp866-dos . cp1251-dos)) |
762d326dca54
Now .emacs only contain emacs custom settings and load my lisp code from separate file.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
29
diff
changeset
|
749 |
)) |
0 | 750 |
|
751 |
;; (setq-default vc-svn-register-switches "--encoding cp1251") |
|
752 |
(setq-default vc-svn-register-switches nil) |
|
753 |
||
11
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
754 |
(setq my-svn-dir (concat my-el-dir "/svn")) |
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
755 |
(if (file-exists-p my-svn-dir) |
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
756 |
(progn |
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
757 |
(add-to-list 'load-path my-svn-dir) |
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
758 |
(require 'vc-svn) |
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
759 |
) |
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
760 |
) |
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
761 |
|
1fea5e1edb38
Load vc-svn if ~/.el/svn dir exist.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
10
diff
changeset
|
762 |
(if (file-exists-p (concat my-el-dir "/mercurial.el")) |
10
1c6aae52de4b
Change path to addon el.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
9
diff
changeset
|
763 |
(require 'mercurial) |
1c6aae52de4b
Change path to addon el.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
9
diff
changeset
|
764 |
) |
1
30e99e01ddc4
add auto-mode-alist for bat-files and load mercurial
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
0
diff
changeset
|
765 |
|
19
a8e7a6e94341
Теперь белый фон для annotated.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
18
diff
changeset
|
766 |
(if window-system |
163
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
767 |
(progn |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
768 |
(custom-set-variables |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
769 |
'(vc-annotate-very-old-color "#0b5b20") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
770 |
'(vc-annotate-background "white") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
771 |
'(vc-annotate-color-map |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
772 |
(quote ( |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
773 |
(20 . "#EE0000") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
774 |
(40 . "#E0800D") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
775 |
(60 . "#D3001A") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
776 |
(80 . "#C68027") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
777 |
(100 . "#B90034") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
778 |
(120 . "#AB8042") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
779 |
(140 . "#9E004F") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
780 |
(160 . "#91805C") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
781 |
(180 . "#840069") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
782 |
(200 . "#778077") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
783 |
(220 . "#690084") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
784 |
(240 . "#5C8091") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
785 |
(260 . "#4F009E") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
786 |
(280 . "#4280AB") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
787 |
(300 . "#3400B9") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
788 |
(320 . "#2780C6") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
789 |
(340 . "#1A00D3") |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
790 |
(360 . "#0D80E0")))) |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
791 |
) |
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
792 |
) |
19
a8e7a6e94341
Теперь белый фон для annotated.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
18
diff
changeset
|
793 |
) |
a8e7a6e94341
Теперь белый фон для annotated.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
18
diff
changeset
|
794 |
|
91 | 795 |
;; ---------------------------------------------------------------------- |
796 |
;; DVC |
|
797 |
||
798 |
(when (featurep 'dvc-emacs) |
|
799 |
(setq dvc-tips-enabled nil) |
|
800 |
) |
|
801 |
||
0 | 802 |
;; ====================================================================== |
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
803 |
;; Devel, prog |
0 | 804 |
|
805 |
(add-to-list 'auto-mode-alist '("\\.cu$" . c-mode)) |
|
806 |
||
172
fcea80b465b9
Comment customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
167
diff
changeset
|
807 |
(setq-default comment-style (quote indent)) |
fcea80b465b9
Comment customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
167
diff
changeset
|
808 |
(setq-default comment-column 44) |
180
75ce786c1148
set comment-fill-column to 100.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
179
diff
changeset
|
809 |
(setq-default comment-fill-column 100) |
54 | 810 |
|
0 | 811 |
(setq-default show-trailing-whitespace t) |
812 |
||
813 |
;; ---------------------------------------------------------------------- |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
814 |
;; Diff, patch |
0 | 815 |
(setq diff-switches "-u") |
816 |
||
817 |
;; ---------------------------------------------------------------------- |
|
818 |
;; Indent |
|
819 |
||
820 |
(setq standard-indent 4) |
|
821 |
(setq c-basic-offset 4) |
|
22
8ca8997d9f1d
Определил размер отступа для sh-mode.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
21
diff
changeset
|
822 |
(setq sh-basic-offset 2) |
0 | 823 |
(setq sgml-basic-offset 4) |
824 |
||
825 |
;; TAB (tab settings) |
|
826 |
(setq-default tab-width 4) |
|
827 |
(setq-default indent-tabs-mode nil) ; t - \t |
|
828 |
(setq tab-always-indent t) |
|
829 |
(setq c-tab-always-indent t) |
|
63
35e8c02c513f
Avoid loop, which cause bug (void function).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
62
diff
changeset
|
830 |
(let ( (line-width 400) ) |
35e8c02c513f
Avoid loop, which cause bug (void function).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
62
diff
changeset
|
831 |
(setq i (+ (/ line-width 4) 1)) |
73
73e42aa11b3c
Correct initial asigned with nil.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
72
diff
changeset
|
832 |
(setq tab-stop-list nil) |
63
35e8c02c513f
Avoid loop, which cause bug (void function).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
62
diff
changeset
|
833 |
(while (> (setq i (- i 1)) 0) |
35e8c02c513f
Avoid loop, which cause bug (void function).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
62
diff
changeset
|
834 |
(setq tab-stop-list (cons (* i 4) tab-stop-list)))) |
0 | 835 |
|
836 |
;; ---------------------------------------------------------------------- |
|
837 |
;; Diff. |
|
838 |
(setq ediff-diff-options "") |
|
839 |
||
840 |
;; ---------------------------------------------------------------------- |
|
841 |
;; *Compile* |
|
842 |
(setq compile-auto-highlight t |
|
843 |
compile-command "make ") |
|
844 |
;; compilation window shall scroll down if not 0 |
|
845 |
(setq compilation-scroll-output 1) |
|
846 |
||
28
b05bcec107fd
Correct coding (aotu determine CR/LF).
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
27
diff
changeset
|
847 |
;; My funny error messages. |
20
fde58d93c047
Добавил подсветку для output-файлов cl в compile-mode.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
19
diff
changeset
|
848 |
;; XXX hook. |
fde58d93c047
Добавил подсветку для output-файлов cl в compile-mode.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
19
diff
changeset
|
849 |
(require 'compile) |
38
90354c640342
Prevent error on debian from non-exist `compilation-error-regexp-alist-alist'.
sasha@rocky
parents:
36
diff
changeset
|
850 |
(add-to-list 'compilation-error-regexp-alist '("^\\( +\\[csc\\] \\|\\)\\(.*\\)(\\([0-9]*\\),\\([0-9]*\\)):" 2 3 4)) |
90354c640342
Prevent error on debian from non-exist `compilation-error-regexp-alist-alist'.
sasha@rocky
parents:
36
diff
changeset
|
851 |
(add-to-list 'compilation-error-regexp-alist '("^ *\\(.*\\)(\\([0-9]*\\)) +:" 1 2)) |
90354c640342
Prevent error on debian from non-exist `compilation-error-regexp-alist-alist'.
sasha@rocky
parents:
36
diff
changeset
|
852 |
;; (add-to-list 'compilation-mode-font-lock-keywords '("\\(/[Oo][Uu][Tt]:[^ ]+\\)" . 1)) |
90354c640342
Prevent error on debian from non-exist `compilation-error-regexp-alist-alist'.
sasha@rocky
parents:
36
diff
changeset
|
853 |
;; (add-to-list 'compilation-mode-font-lock-keywords '("[ ]\\(/F[oe][^ ]+\\)" . 1)) |
0 | 854 |
|
855 |
;; ---------------------------------------------------------------------- |
|
856 |
;; asm |
|
36
4261883ccdb6
Use C-style comment in asm files.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
35
diff
changeset
|
857 |
;; (setq-default asm-comment-char 59) |
4261883ccdb6
Use C-style comment in asm files.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
35
diff
changeset
|
858 |
(add-hook 'asm-mode-hook '(lambda () (setq comment-start "/*") (setq comment-end "*/")) t) |
0 | 859 |
|
176
69d65b8a0a25
Added example for unset-key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
175
diff
changeset
|
860 |
;; (add-hook 'asm-mode-hook '(lambda () (local-unset-key ":"))) |
69d65b8a0a25
Added example for unset-key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
175
diff
changeset
|
861 |
;; (add-hook 'asm-mode-hook '(lambda () (local-set-key ":" ":"))) |
69d65b8a0a25
Added example for unset-key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
175
diff
changeset
|
862 |
|
0 | 863 |
;; ---------------------------------------------------------------------- |
864 |
;; LISP |
|
865 |
(setq list-command-history-max 256) |
|
866 |
||
867 |
;; ---------------------------------------------------------------------- |
|
179
77fdd4bce6c8
c++-mode and objc-mode use "my" style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
178
diff
changeset
|
868 |
;; C, c-mode, C++, c++-mode |
173
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
869 |
|
0 | 870 |
(setq c-echo-syntactic-information-p t) |
173
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
871 |
(add-hook 'c-mode-common-hook |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
872 |
(lambda () |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
873 |
;; Automatically inserte newlines after special characters such as brace, comma, semi-colon, and colon. |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
874 |
(c-toggle-auto-newline -1) |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
875 |
;; Delete all preceding whitespace by DEL. |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
876 |
(c-toggle-hungry-state -1) |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
877 |
)) |
0 | 878 |
|
879 |
(defconst my-c-style |
|
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
880 |
'((c-tab-always-indent . t) |
0 | 881 |
(c-comment-only-line-offset . 4) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
882 |
(c-hanging-braces-alist |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
883 |
. ( |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
884 |
(brace-list-open) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
885 |
(substatement-open after) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
886 |
)) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
887 |
(c-hanging-colons-alist |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
888 |
. ( |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
889 |
(access-label after) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
890 |
(case-label after) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
891 |
(inher-intro) |
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
892 |
(label after) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
893 |
(member-init-intro before) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
894 |
)) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
895 |
(c-cleanup-list |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
896 |
. ( |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
897 |
defun-close-semi |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
898 |
empty-defun-braces |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
899 |
scope-operator |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
900 |
)) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
901 |
(c-offsets-alist |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
902 |
. ( |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
903 |
(arglist-close . c-lineup-arglist) |
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
904 |
(arglist-cont-nonempty . ++) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
905 |
(arglist-intro . ++) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
906 |
(block-open . 0) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
907 |
(case-label . 0) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
908 |
(comment-intro . 0) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
909 |
(func-decl-cont . ++) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
910 |
(inexpr-class . 0) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
911 |
(inline-open . 0) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
912 |
(knr-argdecl-intro . -) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
913 |
(label . 0) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
914 |
(statement-block-intro . +) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
915 |
(statement-cont . ++) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
916 |
(substatement-open . 0) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
917 |
)) |
0 | 918 |
(c-echo-syntactic-information-p . t)) |
919 |
"My C Programming Style") |
|
920 |
||
128
5a3df58678d2
Switch from c-initialization-hook to c-mode-common-hook because otherwise
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
921 |
(add-hook 'c-mode-common-hook |
5a3df58678d2
Switch from c-initialization-hook to c-mode-common-hook because otherwise
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
127
diff
changeset
|
922 |
(lambda () (c-add-style "my" my-c-style t))) |
179
77fdd4bce6c8
c++-mode and objc-mode use "my" style.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
178
diff
changeset
|
923 |
(setq c-default-style '((java-mode . "my") (c-mode . "my") (csharp-mode . "my") (c++-mode . "my") (objc-mode . "my") (other . "my"))) |
0 | 924 |
|
925 |
;; ---------------------------------------------------------------------- |
|
23 | 926 |
;; *csharp*, c-sharp |
927 |
;; |
|
0 | 928 |
(autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t) |
929 |
(add-to-list 'auto-mode-alist '("\\.cs$" . csharp-mode)) |
|
930 |
||
931 |
;; ---------------------------------------------------------------------- |
|
932 |
;; *Java* |
|
933 |
;; Update the Emacs load-path to include the path to |
|
934 |
;; the JDE and its require packages. This code assumes |
|
935 |
;; that you have installed the packages in the emacs/site |
|
936 |
;; subdirectory of your home directory. |
|
937 |
;; (add-to-list 'load-path (expand-file-name "~/emacs/site/semantic")) |
|
938 |
;; (add-to-list 'load-path (expand-file-name "~/emacs/site/speedbar")) |
|
939 |
;; (add-to-list 'load-path (expand-file-name "~/emacs/site/elib-1.0")) |
|
940 |
;; (add-to-list 'load-path (expand-file-name "~/emacs/site/eieio")) |
|
941 |
;; (add-to-list 'load-path (expand-file-name "~/emacs/site/jde-2.3.5.1/lisp")) |
|
942 |
||
943 |
;; Load CEDET |
|
944 |
;; (load-file "~/emacs/site/common/cedet.el") |
|
945 |
;; Enabling SEMANTIC minor modes. See semantic/INSTALL for more ideas. |
|
946 |
;; (semantic-load-enable-code-helpers) |
|
947 |
||
948 |
;; If you want Emacs to defer loading the JDE until you open a |
|
949 |
;; Java file, edit the following line |
|
950 |
;; (setq defer-loading-jde nil) |
|
951 |
;; to read: |
|
952 |
;; |
|
953 |
;; (setq defer-loading-jde t) |
|
954 |
;; |
|
955 |
||
956 |
;; (if defer-loading-jde |
|
957 |
;; (progn |
|
958 |
;; (autoload 'jde-mode "jde" "JDE mode." t) |
|
959 |
;; (add-to-list 'auto-mode-alist '("\\.java\\'" . jde-mode)) |
|
960 |
;; (require 'jde))) |
|
961 |
||
962 |
||
963 |
;; Sets the basic indentation for Java source files |
|
964 |
;; to two spaces. |
|
965 |
;; (defun my-jde-mode-hook () |
|
966 |
;; (setq c-basic-offset 2)) |
|
967 |
||
968 |
;; (add-hook 'jde-mode-hook 'my-jde-mode-hook) |
|
969 |
||
970 |
;; (require 'jde) |
|
971 |
||
972 |
;; ******************** |
|
973 |
;; ECB |
|
974 |
;; ******************* |
|
975 |
||
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
976 |
(setq ecb-tip-of-the-day nil) |
0 | 977 |
;; (add-to-list 'load-path "~/emacs/site/ecb-2.32") |
978 |
;; (require 'ecb) |
|
979 |
||
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
980 |
;; (global-set-key (kbd "\e\eE") 'ecb-activate) |
0 | 981 |
|
104
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
982 |
;; ---------------------------------------------------------------------- |
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
983 |
;; html |
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
984 |
|
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
985 |
;; ---------------------------------------------------------------------- |
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
986 |
;; xml |
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
987 |
|
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
988 |
;; ---------------------------------------------------------------------- |
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
989 |
;; psgml |
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
990 |
(setq sgml-set-face t) ; for highlighting in sgml |
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
991 |
|
0 | 992 |
;; ====================================================================== |
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
993 |
;; Printing |
0 | 994 |
|
995 |
;; Use Notepad to print plain text files to the default Windows printer |
|
996 |
;(setq lpr-command "notepad") |
|
997 |
;(setq lpr-headers-switches '("/p")) ; \ mis-use these |
|
998 |
;(setq lpr-switches nil) ; / two variables |
|
9 | 999 |
;(setq printer-name nil) ; notepad takes the default |
0 | 1000 |
;(setq lpr-printer-switch "/P") ;; run notepad as batch printer |
1001 |
;; |
|
1002 |
;; |
|
1003 |
;(setq printer-name "~/myprint.txt") |
|
1004 |
;(setq ps-printer-name nil) |
|
1005 |
;(setq ps-print-header nil) |
|
1006 |
;; |
|
1007 |
;;; some more menu entries in the command list: |
|
1008 |
;;; see tex-mik.el from package auctex: %v is defined in tex-mik.el |
|
1009 |
;;; other variables are defined in tex.el from auctex |
|
1010 |
;;; the meaning of some auctex-varibles: |
|
1011 |
;symbols defined in tex.el and tex-mik.el: |
|
1012 |
;%b name slave tex-file %t name master tex-file |
|
1013 |
;%d dvi-file %f ps-file |
|
1014 |
;%l "latex --src-specials" |
|
1015 |
;%n line number %p printcommand %q "lpq" |
|
1016 |
;%r (TeX-style-check TeX-print-style) |
|
1017 |
;%s master-file-name without extention |
|
1018 |
;%v yap command view line |
|
1019 |
;(eval-after-load "tex" |
|
1020 |
; '(progn |
|
1021 |
; (add-to-list 'TeX-command-list |
|
9 | 1022 |
; (list "->PS landscape for pdf" |
1023 |
; "dvips %d -N0 -Ppdf -G0 -T 297mm,210mm -o %f " |
|
1024 |
; 'TeX-run-command nil t)) |
|
0 | 1025 |
; (add-to-list 'TeX-command-list |
9 | 1026 |
; (list "All Texify run-viewer" |
1027 |
; "texify --tex-opt=--src --run-viewer --clean %s.tex" |
|
1028 |
; 'TeX-run-command nil t)))) |
|
0 | 1029 |
|
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1030 |
;; ---------------------------------------------------------------- |
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1031 |
;; SQL |
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1032 |
|
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1033 |
;; (desire 'sql-mode) |
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1034 |
(setq sql-password "") |
0 | 1035 |
|
1036 |
;; ====================================================================== |
|
1037 |
;; |
|
1038 |
;; CUA - Windows |
|
1039 |
;; Ctr-c,v,x,d windows CUA |
|
1040 |
||
1041 |
;; 21.3 |
|
1042 |
||
1043 |
;(require 'cua) |
|
1044 |
;(CUA-mode t) |
|
1045 |
;; CUA |
|
1046 |
;(setq CUA-mode-normal-cursor-color "black") |
|
1047 |
;(setq CUA-mode-overwrite-cursor-color "red") |
|
1048 |
;(setq CUA-mode-read-only-cursor-color "green") |
|
1049 |
;(CUA-keypad-mode 'numeric t); . - |
|
1050 |
;(CUA-keypad-mode 'prefix t); . - (-2) |
|
1051 |
||
1052 |
;; 21.3.50 |
|
1053 |
||
1054 |
;(require 'cua-base) |
|
1055 |
;(cua-mode t) |
|
1056 |
;; CUA |
|
1057 |
;(setq cua-normal-cursor-color "black") |
|
1058 |
;(setq cua-overwrite-cursor-color "red") |
|
1059 |
;(setq cua-read-only-cursor-color "green") |
|
1060 |
||
1061 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
1062 |
;; Backup |
0 | 1063 |
|
75
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1064 |
(setq |
147 | 1065 |
backup-by-copying t ; don't clobber symlinks |
75
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1066 |
backup-directory-alist '(("." . "~/.backup")) ; don't litter my fs tree |
82
1a705650ca56
Delete excess backup versions silently, else it prompt to delete ~/.recentf.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
81
diff
changeset
|
1067 |
delete-old-versions t ; delete excess backup versions silently |
75
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1068 |
kept-old-versions 1 ; store first original version |
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1069 |
kept-new-versions 3 ; store last 3 version |
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1070 |
version-control t) ; use versioned backups |
0 | 1071 |
|
150 | 1072 |
;; ====================================================================== |
1073 |
;; auto save |
|
1074 |
||
1075 |
(setq auto-save-default t) |
|
1076 |
;; If nil autosave to different than original to buffer file. |
|
1077 |
(setq auto-save-visited-file-name nil) |
|
1078 |
;; Note: if you kill unsaved file auto save file not deleted. |
|
1079 |
(setq delete-auto-save-files t) |
|
0 | 1080 |
|
1081 |
;; ====================================================================== |
|
40 | 1082 |
;; Setup user info. |
17
4f97bf9a25d5
Удалил строки, содержащие абсолютные пути в windows.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
16
diff
changeset
|
1083 |
|
0 | 1084 |
(cd "~/") |
51 | 1085 |
(setq user-full-name "Oleksandr Gavenko") |
1086 |
(setq user-mail-address "gavenkoa@gmail.com") |
|
1087 |
(setenv "ORGANIZATION" (concat user-full-name " <" user-mail-address ">")) |
|
0 | 1088 |
|
1089 |
(message ".emacs loaded OK.") |
|
1090 |
||
1091 |
;; |
|
1092 |
;; End loading... |