Rename files .emacs-my-custom* to .emacs-my*.
--- a/.emacs Mon Oct 20 23:12:32 2008 +0300
+++ b/.emacs Sat Oct 25 19:43:04 2008 -0400
@@ -1,26 +1,27 @@
;; -*- mode: lisp; coding: cp1251 -*-
;;
;; Copyright (C) 2008 by Oleksandr Gavenko <gavenkoa@gmail.com>
-;; Copyright (C) 2008 by Гавенко Алескандр
+;;
+;; ~/.emacs firstly load ~/.emacs-my-pre, then ~/.emacs-my, then ~/.emacs-my-post.
(defvar user-el-dir (expand-file-name "~/.el")
"Dir where stored extensions.")
-(defvar dot-emacs-my-custom-pre (expand-file-name "~/.emacs-my-custom-pre")
+(defvar dot-emacs-my-pre (expand-file-name "~/.emacs-my-pre")
"Path to file with pre-loaded custom settings.")
-(defvar dot-emacs-my-custom-post (expand-file-name "~/.emacs-my-custom-post")
+(defvar dot-emacs-my-post (expand-file-name "~/.emacs-my-post")
"Path to file with post-loaded custom settings.")
;; pre-load custom settings
-(if (file-exists-p dot-emacs-my-custom-pre)
- (load dot-emacs-my-custom-pre))
+(if (file-exists-p dot-emacs-my-pre)
+ (load dot-emacs-my-pre))
;; load main customization
(load "~/.emacs-my")
;; post-load custom settings
-(if (file-exists-p dot-emacs-my-custom-post)
- (load dot-emacs-my-custom-post))
+(if (file-exists-p dot-emacs-my-post)
+ (load dot-emacs-my-post))
(custom-set-variables
;; custom-set-variables was added by Custom.
--- a/.emacs-my Mon Oct 20 23:12:32 2008 +0300
+++ b/.emacs-my Sat Oct 25 19:43:04 2008 -0400
@@ -2,9 +2,13 @@
;;
;; Copyright (C) 2008 by Oleksandr Gavenko <gavenkoa@gmail.com>
;;
-;; ~/.emacs file for GNU Emacs 21.
+;; .emacs file for GNU Emacs.
+;;
+;; ~/.emacs load this file after ~/.emacs-my-pre, but before ~/.emacs-my-post.
-;; silent runing
+;; ======================================================================
+;; Silent runing.
+
;; (setq inhibit-splash-screen t) ; nonexist on 21.4.1
(setq inhibit-startup-message t)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.emacs-my-post Sat Oct 25 19:43:04 2008 -0400
@@ -0,0 +1,2 @@
+;; -*- lisp -*-
+;; Lastly .emacs load this file, after .emacs-my.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.emacs-my-pre Sat Oct 25 19:43:04 2008 -0400
@@ -0,0 +1,2 @@
+;; -*- lisp -*-
+;; Firstly .emacs load this file, then .emacs-my.
--- a/Makefile Mon Oct 20 23:12:32 2008 +0300
+++ b/Makefile Sat Oct 25 19:43:04 2008 -0400
@@ -8,13 +8,13 @@
all: install
-install: .emacs .emacs-my
- if [ ! -f $$HOME/.emacs ]; then \
- cp .emacs $$HOME/.emacs; \
- fi
- cp .emacs-my $$HOME/.emacs-my
+install: .emacs .emacs-my .emacs-my-pre .emacs-my-post
+ for file in .emacs .emacs-my-pre .emacs-my-post; do \
+ if [ ! -f $(HOME)/$$file ]; then cp $$file $(HOME)/$$file; fi; \
+ done
+ cp .emacs-my $(HOME)/.emacs-my
-install-all: .emacs .emacs-my
+install-all: .emacs .emacs-my .emacs-my-pre .emacs-my-post
for file in $^; do \
cp $$file $(HOME)/$$file; \
done