Added to be load pre-/post-load files with custom settings.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 29 Jun 2008 22:14:34 -0400
changeset 41 38dda673f17f
parent 40 9160789194f0
child 42 04fd7747bc49
Added to be load pre-/post-load files with custom settings.
.emacs
--- a/.emacs	Sun Jun 29 21:45:13 2008 -0400
+++ b/.emacs	Sun Jun 29 22:14:34 2008 -0400
@@ -3,9 +3,21 @@
 ;; Copyright (C) 2008 by Gavenko Oleksandr
 ;; Copyright (C) 2008 by Гавенко Алескандр
 
+(defvar dot-emacs-my-custom-pre (expand-file-name "~/.emacs-my-custom-pre")
+  "Path to file with pre-loaded custom settings.")
+(defvar dot-emacs-my-custom-post (expand-file-name "~/.emacs-my-custom-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))
+
+;; load main customization
 (load "~/.emacs-my")
-(if (file-exists-p "~/.emacs-my-custom")
-    (load "~/.emacs-my-custom"))
+
+;; post-load custom settings
+(if (file-exists-p dot-emacs-my-custom-post)
+    (load dot-emacs-my-custom-post))
 
 (custom-set-variables
   ;; custom-set-variables was added by Custom.