author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 29 Aug 2010 20:26:28 +0300 | |
changeset 449 | 068ea808901d |
parent 448 | bfed530c0e79 |
child 451 | cf6fe4141a9d |
permissions | -rw-r--r-- |
348
c154331ffb7c
Set fill-column for file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
347
diff
changeset
|
1 |
;; -*- mode: lisp; coding: utf-8; fill-column: 78 -*- |
6 | 2 |
;; |
279
fd6164dfec82
Update copyright statement and year.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
272
diff
changeset
|
3 |
;; Written by Oleksandr Gavenko <gavenkoa@gmail.com>, 2008-2010. |
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 |
;; |
302
e93ff9360a51
Point to README from config file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
299
diff
changeset
|
8 |
;; Config file for GNU Emacs. |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
9 |
;; |
351
e30e4bd7e85e
Small spell correction.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
348
diff
changeset
|
10 |
;; For load order see README. |
0 | 11 |
|
12 |
;; ====================================================================== |
|
437 | 13 |
;; emacs 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. |
252
330b4cdfaddf
Increase log message count.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
251
diff
changeset
|
16 |
(setq message-log-max 512) |
0 | 17 |
|
18 |
;; Set the debug option to enable a backtrace when a problem occurs. |
|
19 |
(setq debug-on-error nil) ; t/nil |
|
20 |
||
333
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
21 |
;; ---------------------------------------------------------------------- |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
22 |
;; mode groups |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
23 |
|
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
24 |
(defvar my-devel-mode-list |
401
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
25 |
'( |
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
26 |
outline-mode |
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
27 |
sh-mode script-mode |
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
28 |
c-mode c++-mode java-mode |
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
29 |
python-mode |
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
30 |
lisp-mode |
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
31 |
emacs-lisp-mode |
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
32 |
makefile-mode makefile-gmake-mode |
4e91288dbd84
Highlight TODO FIXME in outline-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
400
diff
changeset
|
33 |
) |
333
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
34 |
"List of development modes.") |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
35 |
|
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
36 |
(defvar my-devel-mode-hook-list |
427
69d3c7df190f
Added outline-mode-hook to my-devel-mode-hook-list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
426
diff
changeset
|
37 |
'( |
69d3c7df190f
Added outline-mode-hook to my-devel-mode-hook-list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
426
diff
changeset
|
38 |
outline-mode-hook |
69d3c7df190f
Added outline-mode-hook to my-devel-mode-hook-list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
426
diff
changeset
|
39 |
sh-mode-hook script-mode-hook |
417
4e178d40ede8
Added 'c++-mode-hook' to 'my-devel-mode-hook-list'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
416
diff
changeset
|
40 |
c-mode-hook c++-mode-hook java-mode-hook |
4e178d40ede8
Added 'c++-mode-hook' to 'my-devel-mode-hook-list'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
416
diff
changeset
|
41 |
python-mode-hook |
4e178d40ede8
Added 'c++-mode-hook' to 'my-devel-mode-hook-list'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
416
diff
changeset
|
42 |
makefile-mode-hook makefile-gmake-mode-hook |
4e178d40ede8
Added 'c++-mode-hook' to 'my-devel-mode-hook-list'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
416
diff
changeset
|
43 |
lisp-mode-hook emacs-lisp-mode-hook) |
333
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
44 |
"List of development mode hooks.") |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
45 |
|
391
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
46 |
(defvar my-scroll-margin-mode-hook-list |
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
47 |
'( |
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
48 |
vc-dir-mode-hook |
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
49 |
recentf-dialog-mode-hook |
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
50 |
org-agenda-grid-mode-hook ; XXX for this item not worked! |
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
51 |
log-view-mode-hook |
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
52 |
diff-mode-hook |
399
d61236d0cd38
Use margin in dired.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
397
diff
changeset
|
53 |
dired-mode-hook |
411
5aaccf6dacd5
Added compilation-mode-hook to my-scroll-margin-mode-hook-list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
407
diff
changeset
|
54 |
compilation-mode-hook |
391
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
55 |
) |
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
56 |
"List of mode hooks for enabling scroll margin.") |
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
57 |
|
333
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
58 |
(defvar my-text-mode-list |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
59 |
'(outline-mode text-mode) |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
60 |
"List of text modes.") |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
61 |
|
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
62 |
(defvar my-text-mode-hook-list |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
63 |
'(outline-mode-hook text-mode-hook) |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
64 |
"List of text mode hooks.") |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
65 |
|
0 | 66 |
;; ====================================================================== |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
67 |
;; appearance. |
0 | 68 |
|
362
f4bd431ad549
By default start from user home directory (HOME point to it).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
361
diff
changeset
|
69 |
(setq default-directory "~/") |
f4bd431ad549
By default start from user home directory (HOME point to it).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
361
diff
changeset
|
70 |
|
370
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
71 |
;; To maximize frame on full screen, not work with Windows Emacs 21.4. |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
72 |
;; And maked different height with Emacs 22.3 and 23.1. |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
73 |
;; (setq initial-frame-alist '((fullscreen . fullboth))) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
74 |
|
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
75 |
;; Next code work with Emacs 21.4, 22.3, 23.1. |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
76 |
(when window-system |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
77 |
(let ( |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
78 |
(px (display-pixel-width)) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
79 |
(py (display-pixel-height)) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
80 |
(fx (frame-char-width)) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
81 |
(fy (frame-char-height)) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
82 |
tx ty |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
83 |
) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
84 |
;; Next formulas discovered empiric on Windows host with default font. |
373
bdf2522ad35c
On Debian with font 7x13 right part of windows go out of display border.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
372
diff
changeset
|
85 |
(setq tx (- (/ px fx) 7)) |
370
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
86 |
(setq ty (- (/ py fy) 4)) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
87 |
(setq initial-frame-alist '((top . 0) (left . 0))) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
88 |
(add-to-list 'initial-frame-alist (cons 'width tx)) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
89 |
(add-to-list 'initial-frame-alist (cons 'height ty)) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
90 |
) ) |
378a4dc8ea1c
Maximize frame on full screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
369
diff
changeset
|
91 |
|
151 | 92 |
(menu-bar-mode -1) |
93 |
(tool-bar-mode -1) |
|
415
a325b9a15b8e
Fix: 'scroll-bar-mode' and 'tooltip-mode' do not defined in Cygwin nox Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
412
diff
changeset
|
94 |
(when window-system |
429
998f33a8ec6e
Open menu by f10 like by C-Mouse-3 without mouse!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
428
diff
changeset
|
95 |
(defun my-popup-menu () |
998f33a8ec6e
Open menu by f10 like by C-Mouse-3 without mouse!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
428
diff
changeset
|
96 |
(interactive) |
998f33a8ec6e
Open menu by f10 like by C-Mouse-3 without mouse!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
428
diff
changeset
|
97 |
(popup-menu |
998f33a8ec6e
Open menu by f10 like by C-Mouse-3 without mouse!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
428
diff
changeset
|
98 |
(mouse-menu-bar-map) ;; (mouse-menu-major-mode-map) |
998f33a8ec6e
Open menu by f10 like by C-Mouse-3 without mouse!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
428
diff
changeset
|
99 |
(list (list (/ (display-pixel-width) 2) 10) (get-buffer-window (buffer-name))))) |
998f33a8ec6e
Open menu by f10 like by C-Mouse-3 without mouse!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
428
diff
changeset
|
100 |
(global-set-key [f10] 'my-popup-menu) |
436
95dfd88eee58
Open *Global menu* by <apps> key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
435
diff
changeset
|
101 |
(global-set-key [apps] 'my-popup-menu) |
415
a325b9a15b8e
Fix: 'scroll-bar-mode' and 'tooltip-mode' do not defined in Cygwin nox Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
412
diff
changeset
|
102 |
(when (>= emacs-major-version 22) (tooltip-mode -1)) |
a325b9a15b8e
Fix: 'scroll-bar-mode' and 'tooltip-mode' do not defined in Cygwin nox Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
412
diff
changeset
|
103 |
(scroll-bar-mode 1) |
a325b9a15b8e
Fix: 'scroll-bar-mode' and 'tooltip-mode' do not defined in Cygwin nox Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
412
diff
changeset
|
104 |
) |
0 | 105 |
|
338
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
106 |
(setq frame-title-format "Emacs - %b") |
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
107 |
|
363
17df92226b5a
Set default-header-line-format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
362
diff
changeset
|
108 |
(setq default-header-line-format nil) |
17df92226b5a
Set default-header-line-format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
362
diff
changeset
|
109 |
;; (setq default-mode-line-format nil) |
17df92226b5a
Set default-header-line-format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
362
diff
changeset
|
110 |
|
364
3d18cfe179cc
Set default fringe and margin width.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
363
diff
changeset
|
111 |
(setq default-left-fringe-width nil) |
3d18cfe179cc
Set default fringe and margin width.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
363
diff
changeset
|
112 |
(setq default-right-fringe-width nil) |
3d18cfe179cc
Set default fringe and margin width.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
363
diff
changeset
|
113 |
(setq default-left-margin-width nil) |
3d18cfe179cc
Set default fringe and margin width.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
363
diff
changeset
|
114 |
(setq default-right-margin-width nil) |
3d18cfe179cc
Set default fringe and margin width.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
363
diff
changeset
|
115 |
|
365
913375395214
No spasing between text lines.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
364
diff
changeset
|
116 |
(setq default-line-spacing nil) |
913375395214
No spasing between text lines.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
364
diff
changeset
|
117 |
|
366
223c01e1a084
Don't truncate long lines.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
365
diff
changeset
|
118 |
(setq default-truncate-lines nil) |
223c01e1a084
Don't truncate long lines.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
365
diff
changeset
|
119 |
|
338
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
120 |
;; show column & line numbers in status bar |
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
121 |
(setq column-number-mode t) |
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
122 |
(setq line-number-mode t) |
413
5b28a08bf61b
Set size-indication-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
412
diff
changeset
|
123 |
(setq size-indication-mode t) |
338
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
124 |
|
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
125 |
;; Also useful such format: (setq display-time-format " %H:%M %d-%m-%y ") |
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
126 |
(setq display-time-24hr-format t) |
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
127 |
(setq display-time-default-load-average nil) |
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
128 |
(display-time) ; display-time-mode |
ebf88f988c37
Move some appearance related switch together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
337
diff
changeset
|
129 |
|
0 | 130 |
(if window-system |
218
1a48dde2dfa3
See what I am typing immediately (for keystroke in minibuffer).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
217
diff
changeset
|
131 |
;; For graphical environment. |
0 | 132 |
(progn |
133 |
(set-background-color "white") |
|
134 |
(set-foreground-color "black") |
|
135 |
(set-cursor-color "brown") |
|
331
7515e5a6b3b9
Added set-mouse-color example.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
329
diff
changeset
|
136 |
;; (set-mouse-color "white") |
248 | 137 |
(setq cursor-type 'box) ; box, hollow, bar, hbar |
0 | 138 |
;;(setq blink-matching-delay 0.01) |
243
739a19c76dcc
Always blink cursor.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
242
diff
changeset
|
139 |
(blink-cursor-mode 1) |
0 | 140 |
;; (set-face-font 'default "7x14") |
141 |
) |
|
218
1a48dde2dfa3
See what I am typing immediately (for keystroke in minibuffer).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
217
diff
changeset
|
142 |
;; For tty. |
0 | 143 |
(progn |
144 |
) |
|
145 |
) |
|
146 |
||
218
1a48dde2dfa3
See what I am typing immediately (for keystroke in minibuffer).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
217
diff
changeset
|
147 |
;; See what I am typing immediately (for keystroke in minibuffer). |
1a48dde2dfa3
See what I am typing immediately (for keystroke in minibuffer).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
217
diff
changeset
|
148 |
(setq echo-keystrokes 0.2) |
1a48dde2dfa3
See what I am typing immediately (for keystroke in minibuffer).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
217
diff
changeset
|
149 |
|
85 | 150 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
151 |
;; silent runing. |
85 | 152 |
|
153 |
;; (setq inhibit-splash-screen t) ; nonexist on 21.4.1 |
|
154 |
(setq inhibit-startup-message t) |
|
155 |
||
361
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
156 |
;; ---------------------------------------------------------------------- |
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
157 |
;; whitespaces. |
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
158 |
|
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
159 |
(setq default-indicate-empty-lines t) |
368
a9c688c1b85f
More verbose buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
366
diff
changeset
|
160 |
(setq default-indicate-buffer-boundaries 'left) |
361
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
161 |
|
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
162 |
(setq-default show-trailing-whitespace t) |
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
163 |
|
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
164 |
(setq next-line-add-newlines nil) |
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
165 |
|
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
166 |
;; See also 'mode-require-final-newline'. |
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
167 |
(add-hook 'text-mode-hook (lambda () (setq require-final-newline nil))) |
9dbe92b8b329
Added indicate-buffer-boundaries.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
360
diff
changeset
|
168 |
|
85 | 169 |
;; ====================================================================== |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
170 |
;; gnu serv, server. |
85 | 171 |
|
172 |
;; (load "~/emacs/bin/gnuserv/gnuserv.el") |
|
173 |
;; (require 'gnuserv) |
|
174 |
;; (setq gnuserv-frame (selected-frame)) |
|
175 |
||
372
32b54537dd10
Code ported to work with Emac 21.4. Mainly problems in undefi8ned functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
371
diff
changeset
|
176 |
(when (>= emacs-major-version 22) |
394
03d8b85ff815
Do not load server.el for Emacs 21.x.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
393
diff
changeset
|
177 |
(require 'server) |
398
47a3e4de976e
Fix compare func name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
397
diff
changeset
|
178 |
(when (and (= emacs-major-version 23) (>= emacs-minor-version 1) (<= emacs-minor-version 2) (equal window-system 'w32)) |
394
03d8b85ff815
Do not load server.el for Emacs 21.x.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
393
diff
changeset
|
179 |
(defun server-ensure-safe-dir (dir) "Noop" t)) ; Suppress error directory ~/.emacs.d/server is unsafe on windows. |
03d8b85ff815
Do not load server.el for Emacs 21.x.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
393
diff
changeset
|
180 |
(server-start) |
03d8b85ff815
Do not load server.el for Emacs 21.x.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
393
diff
changeset
|
181 |
) |
85 | 182 |
|
183 |
;; (desktop-load-default) |
|
184 |
;; (desktop-read) |
|
185 |
||
0 | 186 |
;; ====================================================================== |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
187 |
;; standart/general settings. |
0 | 188 |
|
336
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
189 |
(if (boundp 'confirm-kill-emacs) |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
190 |
(setq confirm-kill-emacs 'yes-or-no-p)) |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
191 |
|
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
192 |
;; Try to speed things up, especially in VM. |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
193 |
(setq gc-cons-threshold 2000000) |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
194 |
|
408
78cf8a4feb66
Fix: default 'command-history' length too short (in Emacs 23.2 is 30).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
404
diff
changeset
|
195 |
;; Default 'command-history' length too short (in Emacs 23.2 is 30). |
78cf8a4feb66
Fix: default 'command-history' length too short (in Emacs 23.2 is 30).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
404
diff
changeset
|
196 |
(setq history-length 200) |
78cf8a4feb66
Fix: default 'command-history' length too short (in Emacs 23.2 is 30).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
404
diff
changeset
|
197 |
|
336
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
198 |
;; Don't beep in my headphones! |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
199 |
(setq ring-bell-function '(lambda () "Empty ring-bell-function." nil)) |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
200 |
(setq visible-bell t) ; With default ring-bell-function in text terminal |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
201 |
; revert screen if press [end] or [home] |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
202 |
|
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
203 |
;; Prompt before evaluating local bits of lisp. This stops people |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
204 |
;; putting things at the end of files which delete all your files! |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
205 |
(setq enable-local-variables t |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
206 |
enable-local-eval 1) |
a252995f7d6b
Move general getting into one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
335
diff
changeset
|
207 |
|
0 | 208 |
(setq kill-whole-line t) |
209 |
||
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
210 |
(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
|
211 |
|
171
2f2aae1d394c
Set read-quoted-char-radix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
169
diff
changeset
|
212 |
(setq read-quoted-char-radix 16) |
2f2aae1d394c
Set read-quoted-char-radix.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
169
diff
changeset
|
213 |
|
344
b7d0989d9472
generic-define-* before (require 'generic-x) allow load all useful extra modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
342
diff
changeset
|
214 |
;; generic-define-* before (require 'generic-x) allow load all useful extra modes. |
b7d0989d9472
generic-define-* before (require 'generic-x) allow load all useful extra modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
342
diff
changeset
|
215 |
(setq generic-define-mswindows-modes t) |
b7d0989d9472
generic-define-* before (require 'generic-x) allow load all useful extra modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
342
diff
changeset
|
216 |
(setq generic-define-unix-modes t) |
341
84db44766351
Remove bat-file-mode as it present in generic-x.el.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
339
diff
changeset
|
217 |
(require 'generic-x) |
84db44766351
Remove bat-file-mode as it present in generic-x.el.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
339
diff
changeset
|
218 |
|
345
90b5ae643a6d
Move code to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
344
diff
changeset
|
219 |
;; The following commands are usually disabled by default. Enable them... |
90b5ae643a6d
Move code to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
344
diff
changeset
|
220 |
(put 'eval-expression 'disabled nil) |
90b5ae643a6d
Move code to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
344
diff
changeset
|
221 |
(put 'downcase-region 'disabled nil) |
90b5ae643a6d
Move code to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
344
diff
changeset
|
222 |
(put 'upcase-region 'disabled nil) |
90b5ae643a6d
Move code to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
344
diff
changeset
|
223 |
(put 'narrow-to-page 'disabled nil) |
90b5ae643a6d
Move code to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
344
diff
changeset
|
224 |
(put 'narrow-to-region 'disabled nil) |
90b5ae643a6d
Move code to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
344
diff
changeset
|
225 |
(put 'scroll-left 'disabled nil) |
90b5ae643a6d
Move code to proper place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
344
diff
changeset
|
226 |
|
432
650ccece6b01
use-dialog-box set to t.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
431
diff
changeset
|
227 |
(setq |
650ccece6b01
use-dialog-box set to t.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
431
diff
changeset
|
228 |
use-dialog-box t |
650ccece6b01
use-dialog-box set to t.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
431
diff
changeset
|
229 |
x-gtk-show-hidden-files t |
650ccece6b01
use-dialog-box set to t.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
431
diff
changeset
|
230 |
) |
650ccece6b01
use-dialog-box set to t.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
431
diff
changeset
|
231 |
|
35
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
232 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
233 |
;; switching, creating, selecting buffers. |
244
5db897a3f1cd
buffer-menu better then buffer-list, but ibuffer much better.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
243
diff
changeset
|
234 |
|
34 | 235 |
(iswitchb-mode 1) |
122
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
236 |
(setq iswitchb-buffer-ignore nil) |
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
237 |
(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
|
238 |
'("^ " |
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
239 |
"^\*Buffer" |
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
240 |
"^\*Completions\*" |
123
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
241 |
"^\*tramp" |
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
242 |
"^\*Dired log\*" |
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
243 |
"^\*Help\*" |
122
680d4677e3fe
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
121
diff
changeset
|
244 |
"^\*Quail Completions\*" |
123
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
245 |
"^\*Disabled Command\*" |
7c1f68e5b898
Extend innore buffers by iswitch.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
122
diff
changeset
|
246 |
)) |
34 | 247 |
|
35
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
248 |
(require 'uniquify) |
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
249 |
(setq uniquify-buffer-name-style 'post-forward) |
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
250 |
|
244
5db897a3f1cd
buffer-menu better then buffer-list, but ibuffer much better.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
243
diff
changeset
|
251 |
;; buffer-menu better then buffer-list, but ibuffer much better. |
5db897a3f1cd
buffer-menu better then buffer-list, but ibuffer much better.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
243
diff
changeset
|
252 |
(global-set-key "\C-x\C-b" 'ibuffer) |
35
691635158df5
More pretty buffer switch and naming.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
34
diff
changeset
|
253 |
|
0 | 254 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
255 |
;; scrolling. |
0 | 256 |
|
339
4e131c57a0ef
With scroll-step 3 when go down it scroll one line but if up - 3 so set
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
338
diff
changeset
|
257 |
(defvar my-scroll-margin 4) |
4e131c57a0ef
With scroll-step 3 when go down it scroll one line but if up - 3 so set
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
338
diff
changeset
|
258 |
|
127 | 259 |
(setq-default |
339
4e131c57a0ef
With scroll-step 3 when go down it scroll one line but if up - 3 so set
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
338
diff
changeset
|
260 |
scroll-step 1 |
4e131c57a0ef
With scroll-step 3 when go down it scroll one line but if up - 3 so set
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
338
diff
changeset
|
261 |
scroll-conservatively my-scroll-margin |
127 | 262 |
scroll-preserve-screen-position t |
263 |
) |
|
264 |
||
333
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
265 |
;; Set margin only for desired modes! Do not frustrate calendar any more. |
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
266 |
(make-variable-buffer-local 'scroll-margin) |
339
4e131c57a0ef
With scroll-step 3 when go down it scroll one line but if up - 3 so set
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
338
diff
changeset
|
267 |
(mapc (lambda (hook) (add-hook hook (lambda nil (setq scroll-margin my-scroll-margin)))) |
372
32b54537dd10
Code ported to work with Emac 21.4. Mainly problems in undefi8ned functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
371
diff
changeset
|
268 |
;; TODO its good invoke delete-dups for list, but delete-dups not exist in Emacs 21.4 |
391
09cfea42153e
Added list of mode hooks for enabling scroll margin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
389
diff
changeset
|
269 |
(append my-text-mode-hook-list my-devel-mode-hook-list my-scroll-margin-mode-hook-list) ) |
333
14b07ca8335a
Set margin only for desired modes! Do not frustrate calendar any more.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
332
diff
changeset
|
270 |
|
127 | 271 |
;; ---------------------------------------------------------------------- |
414
db4e5cb95666
For occur defined standard key binding - 'M-s o'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
413
diff
changeset
|
272 |
;; search, isearch, occur. |
254
51b47da56551
Highlight on search and repalce.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
253
diff
changeset
|
273 |
|
217
1c42ba3ac4ba
Case insensitive search. Group search customization together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
274 |
(setq case-fold-search t) |
1c42ba3ac4ba
Case insensitive search. Group search customization together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
275 |
|
254
51b47da56551
Highlight on search and repalce.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
253
diff
changeset
|
276 |
(setq query-replace-highlight t) ; highlight during query |
51b47da56551
Highlight on search and repalce.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
253
diff
changeset
|
277 |
(setq search-highlight t) ; highlight incremental search |
51b47da56551
Highlight on search and repalce.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
253
diff
changeset
|
278 |
|
217
1c42ba3ac4ba
Case insensitive search. Group search customization together.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
279 |
;; ---------------------------------------------------------------------- |
356
fd1af7a494de
Added key binding for rgrep.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
355
diff
changeset
|
280 |
;; grep, find. |
357
84c8c5f03fd4
Correct grep command.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
356
diff
changeset
|
281 |
|
444
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
282 |
;; This settings have effect from Emacs 22.x. |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
283 |
(when (eq system-type 'windows-nt) |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
284 |
;; Workaround for Cygwin shell, when set 'CYGWIN=noglob'. By default 'shell-quote-argument' |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
285 |
;; quoted by double '\' chars this cause failure. |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
286 |
(defun shell-quote-argument (argument) |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
287 |
(concat "'" argument "'") |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
288 |
) |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
289 |
;; Workaround for Cygwin. |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
290 |
(setq null-device "/dev/null") |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
291 |
) |
5f1cfffd6b67
Various workaround for Cygwin shell and find-*/grep-* Emacs functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
292 |
|
357
84c8c5f03fd4
Correct grep command.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
356
diff
changeset
|
293 |
;; Do not set t because some grep do not has --color options. |
84c8c5f03fd4
Correct grep command.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
356
diff
changeset
|
294 |
(setq grep-highlight-matches nil) |
84c8c5f03fd4
Correct grep command.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
356
diff
changeset
|
295 |
(setq grep-use-null-device nil) |
84c8c5f03fd4
Correct grep command.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
356
diff
changeset
|
296 |
|
356
fd1af7a494de
Added key binding for rgrep.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
355
diff
changeset
|
297 |
(global-set-key [M-f7] 'rgrep) |
fd1af7a494de
Added key binding for rgrep.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
355
diff
changeset
|
298 |
|
fd1af7a494de
Added key binding for rgrep.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
355
diff
changeset
|
299 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
300 |
;; syntax highlighting. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
301 |
|
0 | 302 |
(setq font-lock-maximum-decoration t) |
395
c7f6eb04626d
Port to Emacs 32.2 (in 'global-font-lock-mode' error - Wrong number of arguments).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
391
diff
changeset
|
303 |
(global-font-lock-mode 1) |
0 | 304 |
|
305 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
306 |
;; highlight selected text. |
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
307 |
|
145
b1fdfc950089
More correct code for pc-select.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
144
diff
changeset
|
308 |
;; 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
|
309 |
(transient-mark-mode 1) |
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
310 |
(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
|
311 |
|
298
9fdaecd9336d
Remove duplicated comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
297
diff
changeset
|
312 |
;; Order of next items is important, (assignment must done before pc-selection-mode enabled). |
145
b1fdfc950089
More correct code for pc-select.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
144
diff
changeset
|
313 |
(require 'pc-select) |
298
9fdaecd9336d
Remove duplicated comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
297
diff
changeset
|
314 |
(setq pc-select-selection-keys-only t) ; To avoid some key bindings as F6, etc. |
9fdaecd9336d
Remove duplicated comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
297
diff
changeset
|
315 |
(setq pc-select-meta-moves-sexps t) |
372
32b54537dd10
Code ported to work with Emac 21.4. Mainly problems in undefi8ned functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
371
diff
changeset
|
316 |
(cond |
32b54537dd10
Code ported to work with Emac 21.4. Mainly problems in undefi8ned functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
371
diff
changeset
|
317 |
((= emacs-major-version 21) (pc-selection-mode)) |
32b54537dd10
Code ported to work with Emac 21.4. Mainly problems in undefi8ned functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
371
diff
changeset
|
318 |
((>= emacs-major-version 22) (pc-selection-mode 1)) |
32b54537dd10
Code ported to work with Emac 21.4. Mainly problems in undefi8ned functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
371
diff
changeset
|
319 |
) |
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
320 |
|
146
506d2883199f
kill/yank func also use/update CLIPBOARD selsction on X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
145
diff
changeset
|
321 |
(when (eq window-system 'x) |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
322 |
(setq x-select-enable-clipboard t) ; for Emacs 21.2.1 and newer |
146
506d2883199f
kill/yank func also use/update CLIPBOARD selsction on X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
145
diff
changeset
|
323 |
) |
64
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
324 |
|
54ef0d72488f
More pretty with selecting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
63
diff
changeset
|
325 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
326 |
;; highlighting current line. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
327 |
|
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
328 |
(when window-system |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
329 |
(custom-set-faces '(hl-line ((t (:inherit highlight :background "light yellow"))))) |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
330 |
(global-hl-line-mode 1) |
0 | 331 |
) |
332 |
||
333 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
334 |
;; paren, braces. |
0 | 335 |
|
336 |
(show-paren-mode 1) ; Parenthesis matching via highlighting. |
|
337 |
(setq show-paren-style (quote parenthesis)) |
|
338 |
||
339 |
;; ====================================================================== |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
340 |
;; keyboard, mouse. |
0 | 341 |
|
402
b1a9c8e0c22e
As cyrillic-jcuken input metod fixed
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
398
diff
changeset
|
342 |
;; cyrillic-jis-russian for 567 is :,. |
b1a9c8e0c22e
As cyrillic-jcuken input metod fixed
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
398
diff
changeset
|
343 |
;; cyrillic-jcuken for SHIFT 567 is :,. |
b1a9c8e0c22e
As cyrillic-jcuken input metod fixed
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
398
diff
changeset
|
344 |
;; russian-computer for SHIFT 567 is %^& |
404
c8e90a10c941
Set input method to russian-computer by default as in cyrillic-jcuken instead
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
403
diff
changeset
|
345 |
(if (>= emacs-major-version 22) |
c8e90a10c941
Set input method to russian-computer by default as in cyrillic-jcuken instead
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
403
diff
changeset
|
346 |
(setq default-input-method 'russian-computer) |
c8e90a10c941
Set input method to russian-computer by default as in cyrillic-jcuken instead
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
403
diff
changeset
|
347 |
(setq default-input-method 'cyrillic-jcuken)) |
0 | 348 |
;; (pc-bindings-mode) ; Myself define keybinding, see |
349 |
||
350 |
;; ---------------------------------------------------------------------- |
|
418
dd77820b51c4
I remove partial-completion-mode because it depricated in Emacs 24.0.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
417
diff
changeset
|
351 |
;; completion. |
226
14a0e2402d66
partial-completion-mode cause bug in read-file-name with Emacs v22.3.1 (but not with v23.1).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
225
diff
changeset
|
352 |
|
418
dd77820b51c4
I remove partial-completion-mode because it depricated in Emacs 24.0.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
417
diff
changeset
|
353 |
;; I remove partial-completion-mode because it depricated in Emacs 24.0. |
dd77820b51c4
I remove partial-completion-mode because it depricated in Emacs 24.0.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
417
diff
changeset
|
354 |
;; Completion controled by 'completion-styles' variable. |
0 | 355 |
|
356 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
357 |
;; mouse. |
0 | 358 |
|
359 |
;; Scroll Bar gets dragged by mouse butn 1 |
|
360 |
(global-set-key [vertical-scroll-bar down-mouse-1] 'scroll-bar-drag) |
|
361 |
;; Paste at point NOT at cursor |
|
151 | 362 |
(setq mouse-yank-at-point t) |
439
a1910375f39e
mouse-wheel-mode don't defined for Cygwin console Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
438
diff
changeset
|
363 |
(when window-system |
a1910375f39e
mouse-wheel-mode don't defined for Cygwin console Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
438
diff
changeset
|
364 |
(mouse-wheel-mode 1) |
a1910375f39e
mouse-wheel-mode don't defined for Cygwin console Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
438
diff
changeset
|
365 |
) |
0 | 366 |
|
367 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
368 |
;; key binding, short-keys. |
0 | 369 |
|
370 |
(global-set-key [home] 'beginning-of-line) |
|
371 |
(global-set-key [end] 'end-of-line) |
|
372 |
(global-set-key [C-home] 'beginning-of-buffer) |
|
373 |
(global-set-key [C-end] 'end-of-buffer) |
|
374 |
(global-set-key [C-delete] 'kill-word) |
|
375 |
(global-set-key [delete] 'delete-char) |
|
376 |
;; (global-set-key [backspace] 'backward-delete-char-untabify) ; not work properly in *info* mode |
|
377 |
||
378 |
;; setting some f[1-12] keys |
|
379 |
(global-set-key [f1] 'help) |
|
380 |
(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
|
381 |
;; (global-set-key [xxx] 'ediff-buffers) |
0 | 382 |
(global-set-key [f4] 'ispell-buffer) |
134
a071b60e4339
Set key binding to rename buffer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
125
diff
changeset
|
383 |
(global-set-key [S-f6] 'rename-buffer) |
0 | 384 |
(global-set-key [f8] 'kill-this-buffer) |
385 |
(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
|
386 |
(global-set-key [f6] 'toggle-truncate-lines) |
0 | 387 |
|
388 |
;; frames, windows manipulation, switch buffers |
|
389 |
(global-set-key [?\C-x right] 'next-buffer) |
|
390 |
(global-set-key [?\C-x left] 'previous-buffer) |
|
391 |
||
187
3a0f6acd7e2b
I usually mistype "C-x C-f" to "C-x d" or "C-x C-d", correct this.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
186
diff
changeset
|
392 |
;; I usually mistype "C-x C-f" to "C-x d" or "C-x C-d", so always use find-file, |
3a0f6acd7e2b
I usually mistype "C-x C-f" to "C-x d" or "C-x C-d", correct this.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
186
diff
changeset
|
393 |
;; because when file if directory find-file load dired, if regular file open it. |
3a0f6acd7e2b
I usually mistype "C-x C-f" to "C-x d" or "C-x C-d", correct this.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
186
diff
changeset
|
394 |
(global-set-key (kbd "C-x C-f") 'find-file) |
3a0f6acd7e2b
I usually mistype "C-x C-f" to "C-x d" or "C-x C-d", correct this.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
186
diff
changeset
|
395 |
(global-set-key (kbd "C-x C-d") 'find-file) |
3a0f6acd7e2b
I usually mistype "C-x C-f" to "C-x d" or "C-x C-d", correct this.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
186
diff
changeset
|
396 |
(global-set-key (kbd "C-x d") 'find-file) |
8
c33aa66ebb2e
Added highlight for TODO, FIXME, tabs etc.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
7
diff
changeset
|
397 |
|
0 | 398 |
(global-set-key (kbd "\e\eg") 'goto-line) |
399 |
(global-set-key (kbd "\e\er") 'query-replace-regexp) |
|
400 |
||
435
a34e8ddc9e12
Disable suspend by C-x C-z. It ugly.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
434
diff
changeset
|
401 |
;; Disable suspend. It ugly. |
a34e8ddc9e12
Disable suspend by C-x C-z. It ugly.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
434
diff
changeset
|
402 |
(if window-system (global-set-key (kbd "C-z") nil)) |
a34e8ddc9e12
Disable suspend by C-x C-z. It ugly.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
434
diff
changeset
|
403 |
(global-set-key (kbd "C-x C-z") nil) |
81
0ce6eaf6f26c
Disable C-z, it ugly.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
80
diff
changeset
|
404 |
|
0 | 405 |
;; (global-set-key [language-change] 'ignore) |
406 |
||
407 |
;; ====================================================================== |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
408 |
;; 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
|
409 |
|
162
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
410 |
;; 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
|
411 |
(when (<= emacs-major-version 22) |
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
412 |
(codepage-setup 866) |
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
413 |
(codepage-setup 1251) |
0ac8d1f4304d
Emacs 23.1 no longer need codepage-setup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
157
diff
changeset
|
414 |
) |
0 | 415 |
|
53 | 416 |
;; Comment because prefer-coding-system will be ignored. |
417 |
;; (setq-default coding-system-for-read 'cp1251-dos) |
|
418 |
;; (setq-default coding-system-for-write 'cp1251-dos) |
|
0 | 419 |
|
420 |
;; (setq locale-coding-system 'cp1251-dos) |
|
421 |
;; (set-terminal-coding-system 'cp1251) |
|
422 |
;; (set-keyboard-coding-system 'cp1251) |
|
423 |
||
4
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
424 |
(modify-coding-system-alist 'file "\\.el" 'iso-2022-7bit) |
192
8b4811c64ec4
Correct copy/paste coding in windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
191
diff
changeset
|
425 |
(cond |
106
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
426 |
((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
|
427 |
(progn |
372
32b54537dd10
Code ported to work with Emac 21.4. Mainly problems in undefi8ned functions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
371
diff
changeset
|
428 |
(set-selection-coding-system 'utf-16-le-dos) |
448
bfed530c0e79
Set each coding system separately instead by 'prefer-coding-system' for
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
447
diff
changeset
|
429 |
(setq-default buffer-file-coding-system 'cp1251) |
446
6e0f17222588
Fix file name coding for dired and find-file under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
445
diff
changeset
|
430 |
(setq default-file-name-coding-system 'cp1251) |
448
bfed530c0e79
Set each coding system separately instead by 'prefer-coding-system' for
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
447
diff
changeset
|
431 |
(setq default-process-coding-system '(cp1251 . cp1251)) |
106
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
432 |
)) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
433 |
((equal window-system 'x) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
434 |
(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
|
435 |
(prefer-coding-system 'utf-8-unix) |
259
b6c514e81d2c
ctext-with-extensions is alias for ctext-with-extensions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
256
diff
changeset
|
436 |
(setq selection-coding-system 'compound-text-with-extensions) |
106
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
437 |
(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
|
438 |
(modify-coding-system-alist 'process ".*" 'utf-8-unix) |
106
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
439 |
)) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
440 |
(t |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
441 |
(progn |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
442 |
(prefer-coding-system 'cp1251-dos) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
443 |
(prefer-coding-system 'utf-8-unix) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
444 |
(modify-coding-system-alist 'process ".*" 'utf-8-unix) |
0591d06cf752
Решил проблему copy/paste в X. Решил проблему поиска в UTF-8 буфере.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
445 |
)) |
4
46543c097be0
Transfer changer from .eamcs_unix, add case for w32 or other system.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
3
diff
changeset
|
446 |
) |
0 | 447 |
|
240
77b01720a256
Enable image if supported.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
239
diff
changeset
|
448 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
449 |
;; dired. |
241
78cbd4c692ee
Added dired settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
240
diff
changeset
|
450 |
|
78cbd4c692ee
Added dired settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
240
diff
changeset
|
451 |
(setq dired-dwim-target t) |
78cbd4c692ee
Added dired settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
240
diff
changeset
|
452 |
;; dangerous |
78cbd4c692ee
Added dired settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
240
diff
changeset
|
453 |
;; (setq |
78cbd4c692ee
Added dired settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
240
diff
changeset
|
454 |
;; dired-recursive-copies 'top |
78cbd4c692ee
Added dired settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
240
diff
changeset
|
455 |
;; dired-recursive-deletes 'top) |
78cbd4c692ee
Added dired settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
240
diff
changeset
|
456 |
|
326
ded53e19d23a
Enable 'a' command in dired.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
303
diff
changeset
|
457 |
(put 'dired-find-alternate-file 'disabled nil) ; Enable 'a' command. |
ded53e19d23a
Enable 'a' command in dired.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
303
diff
changeset
|
458 |
|
241
78cbd4c692ee
Added dired settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
240
diff
changeset
|
459 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
460 |
;; compression, archive. |
240
77b01720a256
Enable image if supported.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
239
diff
changeset
|
461 |
|
0 | 462 |
(require 'jka-compr) ; Automatic decompression, hooks for tar-mode. |
463 |
(if (fboundp 'auto-compression-mode) |
|
464 |
(auto-compression-mode 1)) |
|
465 |
||
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
466 |
(modify-coding-system-alist 'file "\\.\\(war\\|ear\\|sar\\|egg\\)\\'" 'no-conversion) |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
467 |
|
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
468 |
(add-to-list 'auto-mode-alist '("\\.\\(war\\|ear\\|sar\\|egg\\)\\'" . archive-mode)) |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
469 |
|
0 | 470 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
471 |
;; image. |
240
77b01720a256
Enable image if supported.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
239
diff
changeset
|
472 |
|
77b01720a256
Enable image if supported.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
239
diff
changeset
|
473 |
(when (fboundp 'auto-image-file-mode) |
77b01720a256
Enable image if supported.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
239
diff
changeset
|
474 |
(auto-image-file-mode 1)) |
77b01720a256
Enable image if supported.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
239
diff
changeset
|
475 |
|
77b01720a256
Enable image if supported.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
239
diff
changeset
|
476 |
;; ---------------------------------------------------------------------- |
0 | 477 |
;; *Recentf* |
109
75b4bf140e73
Prevent TRAMP to login on remote host when loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
108
diff
changeset
|
478 |
|
0 | 479 |
(require 'recentf) |
109
75b4bf140e73
Prevent TRAMP to login on remote host when loading.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
108
diff
changeset
|
480 |
;; 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
|
481 |
;; 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
|
482 |
(setq recentf-auto-cleanup 'never) |
0 | 483 |
(recentf-mode t) |
409
b8fe73dd1ab5
Save more items in 'recentf'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
408
diff
changeset
|
484 |
(setq recentf-max-saved-items 1000) |
0 | 485 |
(global-set-key (kbd "\e\eq") 'recentf-open-files) |
486 |
||
487 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
488 |
;; revert buffer. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
489 |
|
0 | 490 |
(global-set-key [f5] 'revert-buffer) |
491 |
(setq revert-without-query (quote (".*"))) |
|
492 |
(setq auto-revert-interval 2) |
|
493 |
||
494 |
;; ====================================================================== |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
495 |
;; convenient. |
0 | 496 |
|
230
b34c94fa13d9
Added func to calculate region length.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
229
diff
changeset
|
497 |
(defun reglen() |
b34c94fa13d9
Added func to calculate region length.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
229
diff
changeset
|
498 |
"Show region length." |
b34c94fa13d9
Added func to calculate region length.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
229
diff
changeset
|
499 |
(interactive) |
b34c94fa13d9
Added func to calculate region length.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
229
diff
changeset
|
500 |
(message "%s" (- (region-end) (region-beginning)))) |
b34c94fa13d9
Added func to calculate region length.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
229
diff
changeset
|
501 |
|
0 | 502 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
503 |
;; minibuffer. |
153
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
504 |
|
0 | 505 |
(require 'icomplete) ; Interactive completion in minibuffer. |
153
a03216c9fa8c
Delete dust. Correct 'completion-ignored-extensions' list.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
152
diff
changeset
|
506 |
(icomplete-mode 1) |
0 | 507 |
|
228
f55559c1ce8e
Do not redefine completion-ignored-extensions, instead append new values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
227
diff
changeset
|
508 |
(mapc (lambda (ext) (add-to-list 'completion-ignored-extensions ext)) |
f55559c1ce8e
Do not redefine completion-ignored-extensions, instead append new values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
227
diff
changeset
|
509 |
'( |
f55559c1ce8e
Do not redefine completion-ignored-extensions, instead append new values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
227
diff
changeset
|
510 |
".class" "~" ".aux" |
f55559c1ce8e
Do not redefine completion-ignored-extensions, instead append new values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
227
diff
changeset
|
511 |
".o" ".obj" ".map" ".lib" ".lo" ".la" ".a" ".bin" ".exe" |
f55559c1ce8e
Do not redefine completion-ignored-extensions, instead append new values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
227
diff
changeset
|
512 |
;; Place dir at end to appear at the start of completion-ignored-extensions. |
f55559c1ce8e
Do not redefine completion-ignored-extensions, instead append new values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
227
diff
changeset
|
513 |
"CVS/" ".hg/" ".svn/" ".git/" ".bzr/" |
f55559c1ce8e
Do not redefine completion-ignored-extensions, instead append new values.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
227
diff
changeset
|
514 |
) ) |
0 | 515 |
|
516 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
517 |
;; music. |
0 | 518 |
(setq gnus-audio-au-player "winamp.exe" |
519 |
gnus-audio-directory "D:\\music" |
|
520 |
gnus-audio-wav-player "winamp.exe") |
|
521 |
||
97
fe4102cad849
Open egg files as archive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
92
diff
changeset
|
522 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
523 |
;; browser. |
98
5223817dad90
Use mozilla browser. Not tested for Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
97
diff
changeset
|
524 |
|
138
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
525 |
(cond |
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
526 |
((equal window-system 'w32) |
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
527 |
(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
|
528 |
(t |
90fda97adcb1
Setup browse-url func for linux and windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
120
diff
changeset
|
529 |
(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
|
530 |
|
0 | 531 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
532 |
;; calendar. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
533 |
|
0 | 534 |
;; (setq mark-holidays-in-calendar t) |
535 |
;; (setq all-christian-calendar-holidays t) |
|
536 |
;; (setq calendar-date-display-form (quote ((format "%04s-%02d-%02d" year (string-to-int month) (string-to-int day))))) |
|
537 |
;; (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
|
538 |
(setq calendar-week-start-day 1) |
71cec5d9c60f
Set week start with Monday.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
48
diff
changeset
|
539 |
(setq european-calendar-style t) |
0 | 540 |
|
541 |
;; ====================================================================== |
|
542 |
;; |
|
543 |
;; STANDARD HOOKS |
|
544 |
||
545 |
(add-hook 'write-file-hooks 'time-stamp) |
|
546 |
||
547 |
;; ====================================================================== |
|
7
8eae4300e86f
Перебил сочетание клавиш C-x C-d для вызова dired, вместо dir-list.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
6
diff
changeset
|
548 |
;; *auto-fill* |
0 | 549 |
|
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
550 |
(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
|
551 |
|
335
748c6e05fe87
Use common value for fill-column.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
334
diff
changeset
|
552 |
(defvar my-fill-column 100 |
748c6e05fe87
Use common value for fill-column.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
334
diff
changeset
|
553 |
"I use greater value then 78 for comment in prog source.") |
748c6e05fe87
Use common value for fill-column.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
334
diff
changeset
|
554 |
|
148
7df64d2c9f3d
Remove unused key binding. Added more docs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
147
diff
changeset
|
555 |
;; 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
|
556 |
;; 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
|
557 |
(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
|
558 |
|
0 | 559 |
;; Turn on auto-fill mode |
560 |
(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
|
561 |
(add-hook 'text-mode-hook 'turn-on-auto-fill) |
0 | 562 |
|
563 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
564 |
;; unknown. |
0 | 565 |
|
233
dbef8d59a7c1
Remove old unknow desire function.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
232
diff
changeset
|
566 |
;; browse-url mailcrypt gnus message sendmail bbdb pilot bibtex eiffel-mode emacs-w3m |
dbef8d59a7c1
Remove old unknow desire function.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
232
diff
changeset
|
567 |
;; eudc filladapt hugs-mode mpg123 php-mode ps-print |
dbef8d59a7c1
Remove old unknow desire function.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
232
diff
changeset
|
568 |
;; chord-mode - edit guitar music |
dbef8d59a7c1
Remove old unknow desire function.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
232
diff
changeset
|
569 |
;; discography - variant of BibTeX mode for discographies |
0 | 570 |
|
367
58e70956523a
Set cacl digit grouping.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
366
diff
changeset
|
571 |
;; ---------------------------------------------------------------------- |
58e70956523a
Set cacl digit grouping.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
366
diff
changeset
|
572 |
;; cacl, calculator. |
58e70956523a
Set cacl digit grouping.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
366
diff
changeset
|
573 |
|
58e70956523a
Set cacl digit grouping.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
366
diff
changeset
|
574 |
(setq-default calc-group-digits t) |
58e70956523a
Set cacl digit grouping.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
366
diff
changeset
|
575 |
(setq-default calc-group-char "'") |
58e70956523a
Set cacl digit grouping.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
366
diff
changeset
|
576 |
|
0 | 577 |
;; ====================================================================== |
346 | 578 |
;; TeX, LaTeX. |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
579 |
|
0 | 580 |
(setq tex-run-command "initex") |
581 |
||
346 | 582 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
583 |
;; AUC TeX. |
0 | 584 |
|
585 |
;(add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar) |
|
586 |
;; (setq TeX-parse-self t) ; Enable parse on load. |
|
587 |
;; (setq TeX-auto-save t) ; Enable parse on save. |
|
347
ae8ed6d33e90
Dont prompt for master file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
346
diff
changeset
|
588 |
;; Query for master file. If you often use \include or \input, you should make AUCTEX aware of the |
ae8ed6d33e90
Dont prompt for master file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
346
diff
changeset
|
589 |
;; multi-file document structure. |
ae8ed6d33e90
Dont prompt for master file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
346
diff
changeset
|
590 |
(setq-default TeX-master nil) |
0 | 591 |
|
592 |
;(setq TeX-PDF-mode t) |
|
593 |
;(setq TeX-interactive-mode t) |
|
594 |
;(setq TeX-source-specials-mode 1) |
|
595 |
||
596 |
;;; some more menu entries in the command list: |
|
597 |
;;; see tex-mik.el from package auctex: %v is defined in tex-mik.el |
|
598 |
;;; other variables are defined in tex.el from auctex |
|
599 |
;;; the meaning of some auctex-varibles: |
|
600 |
;symbols defined in tex.el and tex-mik.el: |
|
601 |
;%b name slave tex-file %t name master tex-file |
|
602 |
;%d dvi-file %f ps-file |
|
603 |
;%l "latex --src-specials" |
|
604 |
;%n line number %p printcommand %q "lpq" |
|
605 |
;%r (TeX-style-check TeX-print-style) |
|
606 |
;%s master-file-name without extention |
|
607 |
;%v yap command view line |
|
608 |
;(eval-after-load "tex" |
|
609 |
; '(progn |
|
610 |
; (add-to-list 'TeX-command-list |
|
9 | 611 |
; (list "->PS landscape for pdf" |
612 |
; "dvips %d -N0 -Ppdf -G0 -T 297mm,210mm -o %f " |
|
613 |
; 'TeX-run-command nil t)) |
|
0 | 614 |
; (add-to-list 'TeX-command-list |
9 | 615 |
; (list "All Texify run-viewer" |
616 |
; "texify --tex-opt=--src --run-viewer --clean %s.tex" |
|
617 |
; 'TeX-run-command nil t)))) |
|
0 | 618 |
|
346 | 619 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
620 |
;; Reftex activation (Reftex is included with Emacs 21.1). |
0 | 621 |
|
622 |
;; (autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t) |
|
623 |
;; (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil) |
|
624 |
;; (autoload 'reftex-citation "reftex-cite" "Make citation" nil) |
|
625 |
;; (autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t) |
|
626 |
;; (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode |
|
627 |
;; (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode |
|
628 |
||
346 | 629 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
630 |
;; PreviewLatex. |
0 | 631 |
|
632 |
;(load "preview-latex.el" nil t t) |
|
633 |
||
634 |
;(add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) |
|
635 |
;(autoload 'LaTeX-preview-setup "preview") |
|
636 |
||
637 |
;; ====================================================================== |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
638 |
;; Info. |
0 | 639 |
|
323
7a7dc2befa99
Because of Debian policy documentation covered by FDL license with invariant sections not allowed in packet
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
322
diff
changeset
|
640 |
;; Because of Debian policy documentation covered by FDL license with invariant sections not allowed in packet |
324 | 641 |
;; repository tree. So it must be installed manually. My usual configuration is install user local software |
323
7a7dc2befa99
Because of Debian policy documentation covered by FDL license with invariant sections not allowed in packet
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
322
diff
changeset
|
642 |
;; into ~/usr DISTDIR. |
7a7dc2befa99
Because of Debian policy documentation covered by FDL license with invariant sections not allowed in packet
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
322
diff
changeset
|
643 |
(unless (getenv "INFOPATH") |
7a7dc2befa99
Because of Debian policy documentation covered by FDL license with invariant sections not allowed in packet
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
322
diff
changeset
|
644 |
(setenv "INFOPATH" "~/usr/share/info:")) |
7a7dc2befa99
Because of Debian policy documentation covered by FDL license with invariant sections not allowed in packet
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
322
diff
changeset
|
645 |
|
0 | 646 |
;; ====================================================================== |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
647 |
;; man, woman. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
648 |
|
156
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
649 |
(setq woman-use-own-frame nil) |
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
650 |
(setq woman-fill-frame t) |
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
651 |
|
434
12acc6727bd9
Set comint-eol-on-send.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
652 |
;; ---------------------------------------------------------------------- |
12acc6727bd9
Set comint-eol-on-send.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
653 |
;; comint |
12acc6727bd9
Set comint-eol-on-send.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
654 |
|
12acc6727bd9
Set comint-eol-on-send.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
655 |
;; If non-nil, add a `/' to completed directories, ` ' to file names. |
12acc6727bd9
Set comint-eol-on-send.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
656 |
(setq comint-completion-addsuffix t) |
12acc6727bd9
Set comint-eol-on-send.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
657 |
;; Non-nil means go to the end of the line before sending input. |
12acc6727bd9
Set comint-eol-on-send.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
658 |
(setq comint-eol-on-send t) |
12acc6727bd9
Set comint-eol-on-send.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
659 |
|
156
55aed5f25591
Added customisation for woman.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
143
diff
changeset
|
660 |
;; ====================================================================== |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
661 |
;; shell, sh, bash. |
0 | 662 |
|
202
a89804893475
Remove duplicated string.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
200
diff
changeset
|
663 |
;; Setup Emacs to run bash as its primary shell. |
0 | 664 |
;; (setq binary-process-input t) |
665 |
;; (setq shell-file-name "bash") |
|
666 |
;; (setq shell-command-switch "-c") |
|
667 |
;; (setenv "SHELL" shell-file-name) |
|
668 |
||
359
ee15316c1126
By default use sh as shell interpretator on Windows, thus Cygwin or MSYS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
358
diff
changeset
|
669 |
(defvar my-use-windows-shell nil |
ee15316c1126
By default use sh as shell interpretator on Windows, thus Cygwin or MSYS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
358
diff
changeset
|
670 |
"If t 'cmdproxy.exe' will be used as shell. Affect on M-x shell like |
ee15316c1126
By default use sh as shell interpretator on Windows, thus Cygwin or MSYS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
358
diff
changeset
|
671 |
commands. If nil, 'sh' will be used." ) |
ee15316c1126
By default use sh as shell interpretator on Windows, thus Cygwin or MSYS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
358
diff
changeset
|
672 |
|
207 | 673 |
(when (eq window-system 'w32) ; may require Cygwin or MSYS |
388
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
674 |
(if my-use-windows-shell |
389 | 675 |
(progn |
388
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
676 |
;; Restore shell name if user set SHELL env var for Cygwin/MSYS. |
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
677 |
(setq shell-file-name (concat exec-directory "cmdproxy.exe")) |
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
678 |
;; Here is workaround: when explicit-shell-file-name is "bash" and shell-file-name is "cmdproxy.exe" |
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
679 |
;; find-dired incorrect quote args (in shell-quote-argument (w32-shell-name) return "bash", but |
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
680 |
;; shell-command used shell-file-name which value "cmdproxy.exe"). So I put additional space in pattern to |
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
681 |
;; prevent quoting. |
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
682 |
(setq find-ls-option '("-exec ls -ld {} ;" . "-ld")) |
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
683 |
) |
389 | 684 |
(progn |
388
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
685 |
;; Use shell from Cygwin/MinGW. |
390 | 686 |
(setq shell-file-name "bash") |
388
c7a4c56c60ec
Set shell under Windows to Cygwin/MSYS sh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
387
diff
changeset
|
687 |
) |
359
ee15316c1126
By default use sh as shell interpretator on Windows, thus Cygwin or MSYS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
358
diff
changeset
|
688 |
) |
229
0a42b3480404
Use bash as primary shell.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
228
diff
changeset
|
689 |
;; (setq explicit-shell-file-name "bash") |
211
a07b53a7b415
Don't cd to home dir by C-x shell (removed "--login" switch from args).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
208
diff
changeset
|
690 |
(setq explicit-bash-args '("-i")) |
a07b53a7b415
Don't cd to home dir by C-x shell (removed "--login" switch from args).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
208
diff
changeset
|
691 |
(setq explicit-sh-args '("-i")) |
a07b53a7b415
Don't cd to home dir by C-x shell (removed "--login" switch from args).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
208
diff
changeset
|
692 |
) |
1
30e99e01ddc4
add auto-mode-alist for bat-files and load mercurial
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
0
diff
changeset
|
693 |
|
0 | 694 |
;; ====================================================================== |
387
7340a863ae23
Fix spelling settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
385
diff
changeset
|
695 |
;; spell, ispell, aspell. |
0 | 696 |
|
387
7340a863ae23
Fix spelling settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
385
diff
changeset
|
697 |
;; Settings for spelling done in '.emacs-autogen'. |
0 | 698 |
;(add-hook 'text-mode-hook 'flyspell-mode) |
699 |
;(setq flyspell-default-dictionary "russianw") |
|
700 |
;(setq flyspell-delay '1) |
|
701 |
||
702 |
;; ====================================================================== |
|
67
33caed66cee4
Set align for org-mode tags.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
66
diff
changeset
|
703 |
;; 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
|
704 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
705 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
706 |
;; org-mode. |
79
f80cd58e09cb
Use buildin and installed version of org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
78
diff
changeset
|
707 |
|
108
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
708 |
(if (>= emacs-major-version 22) |
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
709 |
(progn |
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
710 |
(require 'org) |
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
711 |
)) |
1559bb79bdd1
Enable org mode for >= emacs22.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
107
diff
changeset
|
712 |
|
295 | 713 |
;; XXX org-todo-keywords '((sequence "TODO" "START" "|" "DONE")) for org-version 4.67c |
714 |
;; XXX (setq org-todo-keywords '("TODO" "START" "DONE")) for org-version 6.05b |
|
79
f80cd58e09cb
Use buildin and installed version of org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
78
diff
changeset
|
715 |
(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
|
716 |
(progn |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
717 |
(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
|
718 |
(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
|
719 |
(setq org-default-notes-file (expand-file-name "~/.gtd/notes")) |
385
f0e9718ec640
View in org agenda TODOs for one month in future.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
384
diff
changeset
|
720 |
(setq org-agenda-ndays 31 |
74
55deb80345ab
Some enhancement for org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
73
diff
changeset
|
721 |
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
|
722 |
org-agenda-show-all-dates t |
329
83096ccf1367
Set org-agenda-format-date.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
303
diff
changeset
|
723 |
org-agenda-format-date "%Y-%m-%d, %A %e %B" |
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
724 |
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
|
725 |
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
|
726 |
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
|
727 |
org-reverse-note-order t |
74
55deb80345ab
Some enhancement for org-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
73
diff
changeset
|
728 |
org-hide-leading-stars t |
67
33caed66cee4
Set align for org-mode tags.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
66
diff
changeset
|
729 |
org-tags-column 64 |
33caed66cee4
Set align for org-mode tags.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
66
diff
changeset
|
730 |
) |
69
754d413dcff2
Aded global key binding for GTD.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
68
diff
changeset
|
731 |
(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
|
732 |
(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
|
733 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
734 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
735 |
;; remember-mode. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
736 |
|
380 | 737 |
(if (or (featurep 'remember) (fboundp 'remember)) |
68 | 738 |
(progn |
739 |
(setq remember-annotation-functions '(org-remember-annotation)) |
|
740 |
(setq remember-handler-functions '(org-remember-handler)) |
|
741 |
(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
|
742 |
(define-key global-map "\C-cr" 'org-remember) |
68 | 743 |
(setq org-remember-templates |
76
3b9b47be4951
With one item emacs do not prompt choose template.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
744 |
;; 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
|
745 |
'((?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
|
746 |
;; (?j "* %^{topic}\n %T\n" "~/.gtd/journal.org") |
72
03586585c558
Move customization to right place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
70
diff
changeset
|
747 |
)) |
03586585c558
Move customization to right place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
70
diff
changeset
|
748 |
(setq |
03586585c558
Move customization to right place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
70
diff
changeset
|
749 |
org-remember-store-without-prompt t |
03586585c558
Move customization to right place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
70
diff
changeset
|
750 |
) )) |
68 | 751 |
|
752 |
;; ---------------------------------------------------------------------- |
|
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
753 |
;; TODO, XXX, FIXME highlight. |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
754 |
;; Show blanks and FIXME |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
755 |
;; 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
|
756 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
757 |
(defface my-tab-face |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
758 |
'((t :background "gray")) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
759 |
"Face for showing TABs." |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
760 |
:group 'basic-faces) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
761 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
762 |
(defface my-conflict-face |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
763 |
'((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
|
764 |
"Font for showing conflicts." |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
765 |
:group 'basic-faces) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
766 |
|
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
767 |
(add-hook 'font-lock-mode-hook (function (lambda () |
232
ea69943781db
Simplify expression.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
231
diff
changeset
|
768 |
(when (member major-mode my-devel-mode-list) |
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
769 |
(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
|
770 |
'( |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
771 |
("\t+" 0 'my-tab-face t) |
322
b1bd2648b826
'my-todo-face' deleted. Standard 'font-lock-warning-face' used instead.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
303
diff
changeset
|
772 |
("\\<\\(FIXME:?\\|XXX:?\\|TODO:?\\)\\>" 1 'font-lock-warning-face t) |
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
773 |
("\\(=\\{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
|
774 |
)))))) |
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
775 |
|
284
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
776 |
;; (dolist (mode '(c-mode |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
777 |
;; java-mode |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
778 |
;; cperl-mode |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
779 |
;; html-mode-hook |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
780 |
;; css-mode-hook |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
781 |
;; emacs-lisp-mode)) |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
782 |
;; (font-lock-add-keywords mode |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
783 |
;; '(("\\(XXX\\|FIXME\\|TODO\\)" |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
784 |
;; 1 font-lock-warning-face prepend)))) |
bf5829d9bbf7
Another way to register TODO highlighting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
280
diff
changeset
|
785 |
|
48
5aa6729514f6
Add customize for org mode. Place todo higlight вместе с org mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
47
diff
changeset
|
786 |
;; ====================================================================== |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
787 |
;; communication |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
788 |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
789 |
;; ---------------------------------------------------------------------- |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
790 |
;; jabber. |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
791 |
|
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
792 |
(when (featurep 'jabber) |
215 | 793 |
(setq |
794 |
jabber-history-enabled t |
|
795 |
jabber-use-global-history nil |
|
796 |
jabber-backlog-number 15 |
|
797 |
jabber-backlog-days 30 |
|
798 |
jabber-alert-presence-message-function (lambda (who oldstatus newstatus statustext) nil) |
|
799 |
) |
|
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
800 |
) |
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
801 |
|
214
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
802 |
(setq my-chat-prompt "[%t] %n>\n") |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
803 |
(when (featurep 'jabber) |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
804 |
(setq |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
805 |
jabber-chat-foreign-prompt-format my-chat-prompt |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
806 |
jabber-chat-local-prompt-format my-chat-prompt |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
807 |
jabber-groupchat-prompt-format my-chat-prompt |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
808 |
jabber-muc-private-foreign-prompt-format "[%t] %g/%n>\n" |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
809 |
) |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
810 |
) |
f4234e15d891
Fix prompt format (prompt and text stay on two line, not one).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
211
diff
changeset
|
811 |
|
182
8a8bf4f3e7c2
Correctly set fsm var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
181
diff
changeset
|
812 |
;; fsm used in emacs jabber |
8a8bf4f3e7c2
Correctly set fsm var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
181
diff
changeset
|
813 |
(when (featurep 'fsm) |
8a8bf4f3e7c2
Correctly set fsm var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
181
diff
changeset
|
814 |
(setq fsm-debug nil) ; Disable *fsm-debug* buffer. |
8a8bf4f3e7c2
Correctly set fsm var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
181
diff
changeset
|
815 |
) |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
816 |
|
142
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
817 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
818 |
;; rcirc. |
142
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
819 |
|
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
820 |
;; Turn on logging everything to a special buffer, for debugging. |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
821 |
;; (setq rcirc-debug-flag t) |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
822 |
|
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
823 |
(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
|
824 |
(setq rcirc-time-format "%H:%M ") |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
825 |
(defun rcirc-handler-301 (process cmd sender args) |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
826 |
"/away message handler.") |
adfc0c678483
Basic customisation for rcirc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
141
diff
changeset
|
827 |
|
239
408ebfd38be3
Set default erc encoding to utf-8 because on Windows I have default coding - cp1251.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
238
diff
changeset
|
828 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
829 |
;; erc. |
239
408ebfd38be3
Set default erc encoding to utf-8 because on Windows I have default coding - cp1251.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
238
diff
changeset
|
830 |
|
377
3e8792ee03cc
Take off noise message from erc in notify.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
376
diff
changeset
|
831 |
;; Take off noise message. |
3e8792ee03cc
Take off noise message from erc in notify.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
376
diff
changeset
|
832 |
(setq erc-track-exclude-types '("JOIN" "PART" "QUIT" "NICK" "MODE")) |
3e8792ee03cc
Take off noise message from erc in notify.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
376
diff
changeset
|
833 |
|
3e8792ee03cc
Take off noise message from erc in notify.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
376
diff
changeset
|
834 |
(setq erc-current-nick-highlight-type 'nick-or-keyword) |
3e8792ee03cc
Take off noise message from erc in notify.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
376
diff
changeset
|
835 |
(setq erc-track-use-faces t) |
3e8792ee03cc
Take off noise message from erc in notify.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
376
diff
changeset
|
836 |
|
239
408ebfd38be3
Set default erc encoding to utf-8 because on Windows I have default coding - cp1251.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
238
diff
changeset
|
837 |
(setq erc-server-coding-system 'utf-8) |
408ebfd38be3
Set default erc encoding to utf-8 because on Windows I have default coding - cp1251.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
238
diff
changeset
|
838 |
|
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
82
diff
changeset
|
839 |
;; ====================================================================== |
363
17df92226b5a
Set default-header-line-format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
362
diff
changeset
|
840 |
;; VCS, version control, cvs, svn, mercurial, hg, bazaar, bzr, git, fossil. |
0 | 841 |
|
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
|
842 |
(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
|
843 |
(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
|
844 |
(modify-coding-system-alist 'process "cvs" '(cp1251-dos . cp1251-dos)) |
405
bef33c83b3a0
As *VC log* pass commit message in UTF-8 encoding I override possible locale
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
401
diff
changeset
|
845 |
(modify-coding-system-alist 'process "svn" '(cp1251 . cp1251)) |
bef33c83b3a0
As *VC log* pass commit message in UTF-8 encoding I override possible locale
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
401
diff
changeset
|
846 |
(setq vc-svn-checkin-switches '("--encoding" "utf-8")) |
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
|
847 |
)) |
0 | 848 |
|
849 |
;; (setq-default vc-svn-register-switches "--encoding cp1251") |
|
850 |
(setq-default vc-svn-register-switches nil) |
|
851 |
||
19
a8e7a6e94341
Теперь белый фон для annotated.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
18
diff
changeset
|
852 |
(if window-system |
163
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
853 |
(progn |
325
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
854 |
(setq |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
855 |
vc-annotate-very-old-color "#0b5b20" |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
856 |
vc-annotate-background "white" |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
857 |
vc-annotate-color-map |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
858 |
'( |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
859 |
(20 . "#EE0000") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
860 |
(40 . "#E0800D") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
861 |
(60 . "#D3001A") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
862 |
(80 . "#C68027") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
863 |
(100 . "#B90034") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
864 |
(120 . "#AB8042") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
865 |
(140 . "#9E004F") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
866 |
(160 . "#91805C") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
867 |
(180 . "#840069") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
868 |
(200 . "#778077") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
869 |
(220 . "#690084") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
870 |
(240 . "#5C8091") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
871 |
(260 . "#4F009E") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
872 |
(280 . "#4280AB") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
873 |
(300 . "#3400B9") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
874 |
(320 . "#2780C6") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
875 |
(340 . "#1A00D3") |
9b2144595e57
Set value to vc-annotate-* by 'setq', with 'custom-set-variables' in always
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
876 |
(360 . "#0D80E0"))) |
163
f9b21d24bbf4
Change color map for vc (C-x v g).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
877 |
) |
19
a8e7a6e94341
Теперь белый фон для annotated.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
18
diff
changeset
|
878 |
) |
a8e7a6e94341
Теперь белый фон для annotated.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
18
diff
changeset
|
879 |
|
91 | 880 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
881 |
;; psvn. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
882 |
|
197
2abcea5b91db
Added settings for psvn.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
192
diff
changeset
|
883 |
(setq svn-status-verbose t) |
2abcea5b91db
Added settings for psvn.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
192
diff
changeset
|
884 |
(setq svn-status-hide-unmodified t) |
2abcea5b91db
Added settings for psvn.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
192
diff
changeset
|
885 |
|
2abcea5b91db
Added settings for psvn.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
192
diff
changeset
|
886 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
887 |
;; DVC. |
91 | 888 |
|
889 |
(when (featurep 'dvc-emacs) |
|
890 |
(setq dvc-tips-enabled nil) |
|
891 |
) |
|
892 |
||
0 | 893 |
;; ====================================================================== |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
894 |
;; devel, prog, programming. |
0 | 895 |
|
896 |
(add-to-list 'auto-mode-alist '("\\.cu$" . c-mode)) |
|
897 |
||
172
fcea80b465b9
Comment customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
167
diff
changeset
|
898 |
(setq-default comment-style (quote indent)) |
fcea80b465b9
Comment customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
167
diff
changeset
|
899 |
(setq-default comment-column 44) |
335
748c6e05fe87
Use common value for fill-column.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
334
diff
changeset
|
900 |
(setq-default comment-fill-column my-fill-column) |
54 | 901 |
|
337
17e3c74b7c22
Use variable my-devel-mode-hook-list so easy adds new devel modes in one
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
336
diff
changeset
|
902 |
(mapc (lambda (hook) (add-hook hook (lambda () (setq fill-column my-fill-column)) )) |
17e3c74b7c22
Use variable my-devel-mode-hook-list so easy adds new devel modes in one
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
336
diff
changeset
|
903 |
my-devel-mode-hook-list) |
201
8531f8af6528
Allow long line coment in c/lisp code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
200
diff
changeset
|
904 |
|
0 | 905 |
;; ---------------------------------------------------------------------- |
420
71e5a962381e
Group related settings in one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
418
diff
changeset
|
906 |
;; diff, patch, ediff, emerge. |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
907 |
|
0 | 908 |
(setq diff-switches "-u") |
909 |
||
420
71e5a962381e
Group related settings in one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
418
diff
changeset
|
910 |
(setq ediff-diff-options "") |
71e5a962381e
Group related settings in one place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
418
diff
changeset
|
911 |
|
0 | 912 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
913 |
;; indenting. |
0 | 914 |
|
915 |
(setq standard-indent 4) |
|
916 |
(setq c-basic-offset 4) |
|
22
8ca8997d9f1d
Определил размер отступа для sh-mode.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
21
diff
changeset
|
917 |
(setq sh-basic-offset 2) |
0 | 918 |
(setq sgml-basic-offset 4) |
919 |
||
920 |
;; TAB (tab settings) |
|
921 |
(setq-default tab-width 4) |
|
253
7cb6ff8a9a75
Translate comment to English.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
252
diff
changeset
|
922 |
(setq-default indent-tabs-mode nil) ; spaces instead of tabs by default |
0 | 923 |
(setq tab-always-indent t) |
924 |
(setq c-tab-always-indent t) |
|
188
e36736f245fd
Start tab-stop-list with zero.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
925 |
(let ( (line-width 400) i ) |
e36736f245fd
Start tab-stop-list with zero.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
926 |
(setq i (* (ceiling line-width 4) 4)) |
73
73e42aa11b3c
Correct initial asigned with nil.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
72
diff
changeset
|
927 |
(setq tab-stop-list nil) |
188
e36736f245fd
Start tab-stop-list with zero.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
928 |
(while (>= i 0) |
e36736f245fd
Start tab-stop-list with zero.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
929 |
(setq tab-stop-list (cons i tab-stop-list)) |
e36736f245fd
Start tab-stop-list with zero.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
162
diff
changeset
|
930 |
(setq i (- i 4)))) |
0 | 931 |
|
932 |
;; ---------------------------------------------------------------------- |
|
933 |
;; *Compile* |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
934 |
|
0 | 935 |
(setq compile-auto-highlight t |
936 |
compile-command "make ") |
|
937 |
;; compilation window shall scroll down if not 0 |
|
938 |
(setq compilation-scroll-output 1) |
|
939 |
||
28
b05bcec107fd
Correct coding (aotu determine CR/LF).
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
27
diff
changeset
|
940 |
;; My funny error messages. |
295 | 941 |
;; XXX нужно реализовать через hook. |
20
fde58d93c047
Добавил подсветку для output-файлов cl в compile-mode.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
19
diff
changeset
|
942 |
(require 'compile) |
38
90354c640342
Prevent error on debian from non-exist `compilation-error-regexp-alist-alist'.
sasha@rocky
parents:
36
diff
changeset
|
943 |
(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
|
944 |
(add-to-list 'compilation-error-regexp-alist '("^ *\\(.*\\)(\\([0-9]*\\)) +:" 1 2)) |
185
9c2934c3d8ca
Parsing KEIL compiler error.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
183
diff
changeset
|
945 |
(add-to-list 'compilation-error-regexp-alist '("^\"?\\([^\"]*\\)\"?,\\([0-9]*\\) .*\\[.*\\]: " 1 2)) ; KEIL compiler |
38
90354c640342
Prevent error on debian from non-exist `compilation-error-regexp-alist-alist'.
sasha@rocky
parents:
36
diff
changeset
|
946 |
;; (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
|
947 |
;; (add-to-list 'compilation-mode-font-lock-keywords '("[ ]\\(/F[oe][^ ]+\\)" . 1)) |
0 | 948 |
|
949 |
;; ---------------------------------------------------------------------- |
|
421
44d516f2badd
Enable automatic depth up search for TAGS file when 'etags-table' available.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
420
diff
changeset
|
950 |
;; TAGS, etags, ctags, GNU GLOBAL. |
44d516f2badd
Enable automatic depth up search for TAGS file when 'etags-table' available.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
420
diff
changeset
|
951 |
|
44d516f2badd
Enable automatic depth up search for TAGS file when 'etags-table' available.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
420
diff
changeset
|
952 |
(when (featurep 'etags-table) |
44d516f2badd
Enable automatic depth up search for TAGS file when 'etags-table' available.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
420
diff
changeset
|
953 |
(setq etags-table-search-up-depth 1) |
44d516f2badd
Enable automatic depth up search for TAGS file when 'etags-table' available.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
420
diff
changeset
|
954 |
) |
44d516f2badd
Enable automatic depth up search for TAGS file when 'etags-table' available.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
420
diff
changeset
|
955 |
|
44d516f2badd
Enable automatic depth up search for TAGS file when 'etags-table' available.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
420
diff
changeset
|
956 |
;; ---------------------------------------------------------------------- |
422
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
957 |
;; CEDET, semantic. |
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
958 |
|
425
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
959 |
;; For debug use 'semantic-debug-idle-function' and 'semantic-debug-idle-work-function'. |
422
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
960 |
(when (or (and (= emacs-major-version 23) (= emacs-minor-version 2)) |
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
961 |
(>= emacs-minor-version 24)) |
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
962 |
(semantic-mode 1) |
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
963 |
(global-semantic-idle-summary-mode 1) |
425
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
964 |
(global-semantic-idle-scheduler-mode 1) |
426
56e15e68d925
Set low idle time to less wait for type info in minibuffer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
425
diff
changeset
|
965 |
(setq semantic-idle-scheduler-idle-time 1) ; 1 sec. |
425
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
966 |
(global-semantic-decoration-mode 1) |
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
967 |
(global-semantic-mru-bookmark-mode 1) |
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
968 |
;; (global-semantic-idle-completions-mode -1) |
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
969 |
;; (global-semantic-stickyfunc-mode 1) |
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
970 |
;; (setq semantic-stickyfunc-sticky-classes '(function type variable include package)) |
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
971 |
|
443
8c5d0e026821
Set my path for headers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
442
diff
changeset
|
972 |
(setq-mode-local c-mode semanticdb-find-default-throttle '(project unloaded system recursive)) |
447
fde6ee13fce1
Use '~/.emacs.d/include' as place for headers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
446
diff
changeset
|
973 |
;; semantic-dependency-system-include-path |
fde6ee13fce1
Use '~/.emacs.d/include' as place for headers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
446
diff
changeset
|
974 |
(add-hook 'c-mode-hook (lambda nil (semantic-add-system-include "~/.emacs.d/include" 'c-mode))) |
fde6ee13fce1
Use '~/.emacs.d/include' as place for headers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
446
diff
changeset
|
975 |
(add-hook 'c-mode-hook (lambda nil (semantic-add-system-include "~/.emacs.d/include" 'c++-mode))) |
443
8c5d0e026821
Set my path for headers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
442
diff
changeset
|
976 |
(global-semanticdb-minor-mode 1) |
8c5d0e026821
Set my path for headers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
442
diff
changeset
|
977 |
|
425
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
978 |
;; (semantic-add-system-include "~/include" 'c++-mode) |
b835c68d20a8
Added more semantic customisation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
424
diff
changeset
|
979 |
;; (semantic-add-system-include "~/include" 'c-mode) |
442
bf31b8f54b4a
Set funny key binding for analyzer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
439
diff
changeset
|
980 |
|
bf31b8f54b4a
Set funny key binding for analyzer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
439
diff
changeset
|
981 |
(global-set-key (kbd "C-c , .") 'semantic-ia-fast-jump) |
bf31b8f54b4a
Set funny key binding for analyzer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
439
diff
changeset
|
982 |
(global-set-key (kbd "C-c , d") 'semantic-ia-show-doc) |
bf31b8f54b4a
Set funny key binding for analyzer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
439
diff
changeset
|
983 |
(global-set-key (kbd "C-c , D") 'semantic-ia-describe-class) |
422
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
984 |
) |
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
985 |
|
021017e52754
Enable 'semantic' for Emacs 23.2.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
421
diff
changeset
|
986 |
;; ---------------------------------------------------------------------- |
428
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
987 |
;; imenu. |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
988 |
|
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
989 |
(require 'imenu) |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
990 |
(when window-system |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
991 |
(mapc (lambda (hook) |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
992 |
(add-hook hook |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
993 |
(lambda () |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
994 |
(imenu-add-menubar-index) |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
995 |
(run-hooks 'menu-bar-update-hook) |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
996 |
) )) |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
997 |
my-devel-mode-hook-list) |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
998 |
) |
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
999 |
|
6e8b3a312262
Allow imenu function if manu-bar-mode disabled (becase in that case
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
427
diff
changeset
|
1000 |
;; ---------------------------------------------------------------------- |
303 | 1001 |
;; windows inf files for driver installing |
1002 |
||
288
5009c3f4afef
Windows inf files for installing drivers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
285
diff
changeset
|
1003 |
(add-to-list 'auto-mode-alist '("\\.inf\\'" . conf-mode)) |
5009c3f4afef
Windows inf files for installing drivers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
285
diff
changeset
|
1004 |
|
5009c3f4afef
Windows inf files for installing drivers.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
285
diff
changeset
|
1005 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1006 |
;; makefile, make. |
196
154d8ebf534b
Added matches for makefile-gmake-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
192
diff
changeset
|
1007 |
|
154d8ebf534b
Added matches for makefile-gmake-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
192
diff
changeset
|
1008 |
(add-to-list 'auto-mode-alist '("\\(Makefile\\|Makefile\\..+\\)\\'" . makefile-gmake-mode)) |
154d8ebf534b
Added matches for makefile-gmake-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
192
diff
changeset
|
1009 |
|
154d8ebf534b
Added matches for makefile-gmake-mode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
192
diff
changeset
|
1010 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1011 |
;; asm, assembler. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1012 |
|
36
4261883ccdb6
Use C-style comment in asm files.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
35
diff
changeset
|
1013 |
;; (setq-default asm-comment-char 59) |
4261883ccdb6
Use C-style comment in asm files.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
35
diff
changeset
|
1014 |
(add-hook 'asm-mode-hook '(lambda () (setq comment-start "/*") (setq comment-end "*/")) t) |
0 | 1015 |
|
186
8c74e1ac4da1
Added association for IAR asm file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
185
diff
changeset
|
1016 |
(add-to-list 'auto-mode-alist '("\\.\\([sS]79\\|[sS]\\)\\'" . asm-mode)) |
8c74e1ac4da1
Added association for IAR asm file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
185
diff
changeset
|
1017 |
|
176
69d65b8a0a25
Added example for unset-key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
175
diff
changeset
|
1018 |
;; (add-hook 'asm-mode-hook '(lambda () (local-unset-key ":"))) |
69d65b8a0a25
Added example for unset-key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
175
diff
changeset
|
1019 |
;; (add-hook 'asm-mode-hook '(lambda () (local-set-key ":" ":"))) |
69d65b8a0a25
Added example for unset-key.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
175
diff
changeset
|
1020 |
|
0 | 1021 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1022 |
;; linker. |
272
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1023 |
|
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1024 |
(when (fboundp 'iar-linker-config-mode) |
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1025 |
(add-to-list 'auto-mode-alist '("\\.icf\\'" . iar-linker-config-mode)) |
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1026 |
) |
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1027 |
(when (fboundp 'iar4-linker-config-mode) |
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1028 |
(add-to-list 'auto-mode-alist '("\\.xcl\\'" . iar4-linker-config-mode)) |
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1029 |
) |
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1030 |
|
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1031 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1032 |
;; lisp. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1033 |
|
0 | 1034 |
(setq list-command-history-max 256) |
1035 |
||
1036 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1037 |
;; C, c-mode, C++, c++-mode. |
173
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
1038 |
|
0 | 1039 |
(setq c-echo-syntactic-information-p t) |
173
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
1040 |
(add-hook 'c-mode-common-hook |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
1041 |
(lambda () |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
1042 |
;; 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
|
1043 |
(c-toggle-auto-newline -1) |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
1044 |
;; Delete all preceding whitespace by DEL. |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
1045 |
(c-toggle-hungry-state -1) |
04b974b118c2
cc-mode customisations.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
172
diff
changeset
|
1046 |
)) |
0 | 1047 |
|
1048 |
(defconst my-c-style |
|
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1049 |
'((c-tab-always-indent . t) |
0 | 1050 |
(c-comment-only-line-offset . 4) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1051 |
(c-hanging-braces-alist |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1052 |
. ( |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1053 |
(brace-list-open) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1054 |
(substatement-open after) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1055 |
)) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1056 |
(c-hanging-colons-alist |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1057 |
. ( |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1058 |
(access-label after) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1059 |
(case-label after) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1060 |
(inher-intro) |
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1061 |
(label after) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1062 |
(member-init-intro before) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1063 |
)) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1064 |
(c-cleanup-list |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1065 |
. ( |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1066 |
defun-close-semi |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1067 |
empty-defun-braces |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1068 |
scope-operator |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1069 |
)) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1070 |
(c-offsets-alist |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1071 |
. ( |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1072 |
(arglist-close . c-lineup-arglist) |
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1073 |
(arglist-cont-nonempty . ++) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1074 |
(arglist-intro . ++) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1075 |
(block-open . 0) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1076 |
(case-label . 0) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1077 |
(comment-intro . 0) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1078 |
(func-decl-cont . ++) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1079 |
(inexpr-class . 0) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1080 |
(inline-open . 0) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1081 |
(knr-argdecl-intro . -) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1082 |
(label . 0) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1083 |
(statement-block-intro . +) |
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1084 |
(statement-cont . ++) |
129
23d028bad418
More regular indent.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
128
diff
changeset
|
1085 |
(substatement-open . 0) |
445
17ffd2e22d12
Disable indent on extern C.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
444
diff
changeset
|
1086 |
(inextern-lang . 0) |
131
bd2400a18295
Practice alphabetical order.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
130
diff
changeset
|
1087 |
)) |
0 | 1088 |
(c-echo-syntactic-information-p . t)) |
1089 |
"My C Programming Style") |
|
1090 |
||
424
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1091 |
(add-hook |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1092 |
'c-mode-common-hook |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1093 |
'(lambda () |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1094 |
(c-add-style "my" my-c-style t) |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1095 |
;; If set 'c-default-style' before 'c-add-style' |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1096 |
;; "Undefined style: my" error occured from 'c-get-style-variables'. |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1097 |
(setq c-default-style |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1098 |
'( |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1099 |
(java-mode . "my") (c-mode . "my") (csharp-mode . "my") (c++-mode . "my") (objc-mode . "my") |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1100 |
(awk-mode . "awk") |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1101 |
(other . "my") |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1102 |
)) |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1103 |
)) |
188eba7735eb
If set 'c-default-style' before 'c-add-style'
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
423
diff
changeset
|
1104 |
|
0 | 1105 |
|
1106 |
;; ---------------------------------------------------------------------- |
|
341
84db44766351
Remove bat-file-mode as it present in generic-x.el.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
339
diff
changeset
|
1107 |
;; bat file, batch, loaded from 'generic-x.el'. |
272
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1108 |
|
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1109 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1110 |
;; nsis-mode. |
272
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1111 |
|
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1112 |
(when (fboundp 'nsis-mode) |
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1113 |
(add-to-list 'auto-mode-alist '("\\.\\(nsi\\|nsh\\)\\'" . nsis-mode)) |
f7fba93f4028
Enable file association for myself defined modes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
266
diff
changeset
|
1114 |
) |
204
4545865a64c3
Move bat file mode code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
203
diff
changeset
|
1115 |
|
4545865a64c3
Move bat file mode code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
203
diff
changeset
|
1116 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1117 |
;; *csharp*, c-sharp. |
204
4545865a64c3
Move bat file mode code.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
203
diff
changeset
|
1118 |
|
0 | 1119 |
(autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t) |
1120 |
(add-to-list 'auto-mode-alist '("\\.cs$" . csharp-mode)) |
|
1121 |
||
1122 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1123 |
;; java. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1124 |
|
431
84a5ac36edab
Remove load-path assignment.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
430
diff
changeset
|
1125 |
;; If you want Emacs to defer loading the JDE until you open a Java file, edit |
84a5ac36edab
Remove load-path assignment.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
430
diff
changeset
|
1126 |
;; the following line: |
0 | 1127 |
|
431
84a5ac36edab
Remove load-path assignment.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
430
diff
changeset
|
1128 |
;; (setq defer-loading-jde t) |
0 | 1129 |
;; (if defer-loading-jde |
1130 |
;; (progn |
|
1131 |
;; (autoload 'jde-mode "jde" "JDE mode." t) |
|
1132 |
;; (add-to-list 'auto-mode-alist '("\\.java\\'" . jde-mode)) |
|
1133 |
;; (require 'jde))) |
|
1134 |
||
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1135 |
;; ---------------------------------------------------------------------- |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1136 |
;; ECB. |
0 | 1137 |
|
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1138 |
(setq ecb-tip-of-the-day nil) |
0 | 1139 |
|
104
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
1140 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1141 |
;; html. |
104
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
1142 |
|
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
1143 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1144 |
;; xml. |
104
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
1145 |
|
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
1146 |
;; ---------------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1147 |
;; psgml. |
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1148 |
|
245 | 1149 |
(setq sgml-set-face t) ; for highlighting in sgml |
104
e921a5d906ca
Use highlighting on sgml modes!
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
1150 |
|
438
740efbdc5777
Associate shell-script-mode for .cygport files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
437
diff
changeset
|
1151 |
;; ---------------------------------------------------------------------- |
740efbdc5777
Associate shell-script-mode for .cygport files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
437
diff
changeset
|
1152 |
;; sh, bash. |
740efbdc5777
Associate shell-script-mode for .cygport files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
437
diff
changeset
|
1153 |
|
740efbdc5777
Associate shell-script-mode for .cygport files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
437
diff
changeset
|
1154 |
(add-to-list 'auto-mode-alist '("\\.cygport\\'" . shell-script-mode)) |
740efbdc5777
Associate shell-script-mode for .cygport files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
437
diff
changeset
|
1155 |
|
0 | 1156 |
;; ====================================================================== |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1157 |
;; printing. |
0 | 1158 |
|
1159 |
;; Use Notepad to print plain text files to the default Windows printer |
|
1160 |
;(setq lpr-command "notepad") |
|
1161 |
;(setq lpr-headers-switches '("/p")) ; \ mis-use these |
|
1162 |
;(setq lpr-switches nil) ; / two variables |
|
9 | 1163 |
;(setq printer-name nil) ; notepad takes the default |
0 | 1164 |
;(setq lpr-printer-switch "/P") ;; run notepad as batch printer |
1165 |
;; |
|
295 | 1166 |
|
1167 |
;; ---------------------------------------------------------------------- |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1168 |
;; printing to file. |
295 | 1169 |
|
0 | 1170 |
;(setq printer-name "~/myprint.txt") |
1171 |
;(setq ps-printer-name nil) |
|
1172 |
;(setq ps-print-header nil) |
|
1173 |
;;; some more menu entries in the command list: |
|
1174 |
;;; see tex-mik.el from package auctex: %v is defined in tex-mik.el |
|
1175 |
;;; other variables are defined in tex.el from auctex |
|
1176 |
;;; the meaning of some auctex-varibles: |
|
1177 |
;symbols defined in tex.el and tex-mik.el: |
|
1178 |
;%b name slave tex-file %t name master tex-file |
|
1179 |
;%d dvi-file %f ps-file |
|
1180 |
;%l "latex --src-specials" |
|
1181 |
;%n line number %p printcommand %q "lpq" |
|
1182 |
;%r (TeX-style-check TeX-print-style) |
|
1183 |
;%s master-file-name without extention |
|
1184 |
;%v yap command view line |
|
1185 |
;(eval-after-load "tex" |
|
1186 |
; '(progn |
|
1187 |
; (add-to-list 'TeX-command-list |
|
9 | 1188 |
; (list "->PS landscape for pdf" |
1189 |
; "dvips %d -N0 -Ppdf -G0 -T 297mm,210mm -o %f " |
|
1190 |
; 'TeX-run-command nil t)) |
|
0 | 1191 |
; (add-to-list 'TeX-command-list |
9 | 1192 |
; (list "All Texify run-viewer" |
1193 |
; "texify --tex-opt=--src --run-viewer --clean %s.tex" |
|
1194 |
; 'TeX-run-command nil t)))) |
|
0 | 1195 |
|
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1196 |
;; ---------------------------------------------------------------- |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1197 |
;; SQL. |
102
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1198 |
|
25585e240b4a
Move customization from .emacs (custom-set-variables) to .emacs-my. Remove duplication.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
101
diff
changeset
|
1199 |
(setq sql-password "") |
0 | 1200 |
|
1201 |
;; ====================================================================== |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1202 |
;; backuping. |
0 | 1203 |
|
75
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1204 |
(setq |
328
c770f75a351f
Set make-backup-files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
327
diff
changeset
|
1205 |
make-backup-files t |
374 | 1206 |
;; In other case (by renaming) you loose original file creation date. |
1207 |
backup-by-copying t |
|
75
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1208 |
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
|
1209 |
delete-old-versions t ; delete excess backup versions silently |
75
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1210 |
kept-old-versions 1 ; store first original version |
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1211 |
kept-new-versions 3 ; store last 3 version |
cd964a1d58b9
Use backup for files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
74
diff
changeset
|
1212 |
version-control t) ; use versioned backups |
0 | 1213 |
|
150 | 1214 |
;; ====================================================================== |
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1215 |
;; auto save. |
150 | 1216 |
|
1217 |
(setq auto-save-default t) |
|
1218 |
;; If nil autosave to different than original to buffer file. |
|
1219 |
(setq auto-save-visited-file-name nil) |
|
1220 |
;; Note: if you kill unsaved file auto save file not deleted. |
|
1221 |
(setq delete-auto-save-files t) |
|
0 | 1222 |
|
1223 |
;; ====================================================================== |
|
296
e502c69ab80a
Make header name like tags, separated by comma and ended on period.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
295
diff
changeset
|
1224 |
;; user info. |
17
4f97bf9a25d5
Удалил строки, содержащие абсолютные пути в windows.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
16
diff
changeset
|
1225 |
|
51 | 1226 |
(setq user-full-name "Oleksandr Gavenko") |
1227 |
(setq user-mail-address "gavenkoa@gmail.com") |
|
1228 |
(setenv "ORGANIZATION" (concat user-full-name " <" user-mail-address ">")) |
|
0 | 1229 |
|
250
ef1c7269280f
Show different messages on statup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
249
diff
changeset
|
1230 |
(add-hook 'emacs-startup-hook |
ef1c7269280f
Show different messages on statup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
249
diff
changeset
|
1231 |
(lambda () |
ef1c7269280f
Show different messages on statup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
249
diff
changeset
|
1232 |
(let ( (mgs-list '("Welcome to emacs, the thermonuclear editor." |
ef1c7269280f
Show different messages on statup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
249
diff
changeset
|
1233 |
"You enter to Out Space. Emacs on." |
ef1c7269280f
Show different messages on statup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
249
diff
changeset
|
1234 |
"Nice day for Emacsing!")) ) |
ef1c7269280f
Show different messages on statup.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
249
diff
changeset
|
1235 |
(message (nth (random (length mgs-list)) mgs-list))))) |
0 | 1236 |
|
1237 |
;; End loading... |