author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Thu, 18 Mar 2010 10:57:52 +0200 | |
changeset 356 | fd1af7a494de |
parent 351 | e30e4bd7e85e |
child 386 | 3efe37437745 |
permissions | -rw-r--r-- |
349
c914089bd84b
Set fill-column for file.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
343
diff
changeset
|
1 |
;; -*- mode: lisp; coding: utf-8; fill-column: 78 -*- |
42
04fd7747bc49
Update copyright notice.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
41
diff
changeset
|
2 |
;; |
278
35338cab99a9
Remove copyright as in public domain.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
277
diff
changeset
|
3 |
;; Written by Oleksandr Gavenko <gavenkoa@gmail.com>, 2008-2010. |
83
d2eaf2ed6d1c
Added basic jabber customization.
gavenkoa@gavenko.bifit.int
parents:
71
diff
changeset
|
4 |
;; |
110
6b6e3f8cb371
Set copyright notice.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
5 |
;; This file placed in public domain. |
6b6e3f8cb371
Set copyright notice.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
6 |
;; |
351
e30e4bd7e85e
Small spell correction.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
349
diff
changeset
|
7 |
;; For load order see README. |
6 | 8 |
|
92
359f03f8a64b
Move path definition to share place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
71
diff
changeset
|
9 |
;; ====================================================================== |
359f03f8a64b
Move path definition to share place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
71
diff
changeset
|
10 |
;; Load path. |
359f03f8a64b
Move path definition to share place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
71
diff
changeset
|
11 |
(defvar my-usr-el-dir |
359f03f8a64b
Move path definition to share place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
71
diff
changeset
|
12 |
(expand-file-name "~/usr/share/emacs/site-lisp") |
359f03f8a64b
Move path definition to share place.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
71
diff
changeset
|
13 |
"Here live additional lisp packages.") |
276
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
14 |
(add-to-list 'load-path my-usr-el-dir t) |
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
15 |
(defvar my-lisp-dir |
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
16 |
(expand-file-name "~/.emacs.d/my-lisp") |
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
17 |
"Here live my lisp packages.") |
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
18 |
(add-to-list 'load-path my-lisp-dir t) |
71
8d0f605b4990
Define dir where stored extensions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
42
diff
changeset
|
19 |
|
276
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
20 |
(defvar my-autoload (concat my-lisp-dir "/autoload-my.el") |
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
21 |
"Path to autoload for mode files.") |
111
fcea9d3b79e1
Rename -my{-pre/-post} to {-pre/-post}.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
22 |
(defvar dot-emacs-pre (expand-file-name "~/.emacs-pre") |
41
38dda673f17f
Added to be load pre-/post-load files with custom settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
23 |
"Path to file with pre-loaded custom settings.") |
111
fcea9d3b79e1
Rename -my{-pre/-post} to {-pre/-post}.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
24 |
(defvar dot-emacs-post (expand-file-name "~/.emacs-post") |
41
38dda673f17f
Added to be load pre-/post-load files with custom settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
25 |
"Path to file with post-loaded custom settings.") |
38dda673f17f
Added to be load pre-/post-load files with custom settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
26 |
|
38dda673f17f
Added to be load pre-/post-load files with custom settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
27 |
;; pre-load custom settings |
111
fcea9d3b79e1
Rename -my{-pre/-post} to {-pre/-post}.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
28 |
(if (file-exists-p dot-emacs-pre) |
fcea9d3b79e1
Rename -my{-pre/-post} to {-pre/-post}.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
29 |
(load dot-emacs-pre)) |
41
38dda673f17f
Added to be load pre-/post-load files with custom settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
30 |
|
276
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
31 |
(if (file-exists-p my-autoload) |
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
32 |
(load my-autoload)) |
35d90ffc94e7
Load autoloads instead all mode files for speed.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
235
diff
changeset
|
33 |
|
343
fb177bcb3d6f
Load 'custom-file' before "~/.emacs-my" as some settings can effect on require
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
304
diff
changeset
|
34 |
(setq custom-file "~/.emacs-custom.el") |
fb177bcb3d6f
Load 'custom-file' before "~/.emacs-my" as some settings can effect on require
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
304
diff
changeset
|
35 |
(if (file-exists-p custom-file) |
fb177bcb3d6f
Load 'custom-file' before "~/.emacs-my" as some settings can effect on require
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
304
diff
changeset
|
36 |
(load custom-file)) |
fb177bcb3d6f
Load 'custom-file' before "~/.emacs-my" as some settings can effect on require
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
304
diff
changeset
|
37 |
|
41
38dda673f17f
Added to be load pre-/post-load files with custom settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
38 |
;; load main customization |
30
762d326dca54
Now .emacs only contain emacs custom settings and load my lisp code from separate file.
Oleksander Gavenko <gavenko_a@3g.ua>
parents:
17
diff
changeset
|
39 |
(load "~/.emacs-my") |
41
38dda673f17f
Added to be load pre-/post-load files with custom settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
40 |
|
38dda673f17f
Added to be load pre-/post-load files with custom settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
37
diff
changeset
|
41 |
;; post-load custom settings |
111
fcea9d3b79e1
Rename -my{-pre/-post} to {-pre/-post}.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
42 |
(if (file-exists-p dot-emacs-post) |
fcea9d3b79e1
Rename -my{-pre/-post} to {-pre/-post}.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
102
diff
changeset
|
43 |
(load dot-emacs-post)) |