.emacs
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 03 Feb 2010 23:00:46 +0200
changeset 292 5524c165e7ad
parent 291 a8e3a3821f17
child 293 292c9ded7c63
permissions -rw-r--r--
hl-line face already set in '.emacs-my'.

;; -*- mode: lisp; coding: cp1251 -*-
;;
;; Written by Oleksandr Gavenko <gavenkoa@gmail.com>, 2008-2010.
;;
;; This file placed in public domain.
;;
;; ~/.emacs firstly load ~/.emacs-pre, then ~/.emacs-my, then ~/.emacs-post.

;; ======================================================================
;; Load path.
(defvar my-usr-el-dir
  (expand-file-name "~/usr/share/emacs/site-lisp")
  "Here live additional lisp packages.")
(add-to-list 'load-path my-usr-el-dir t)
(defvar my-lisp-dir
  (expand-file-name "~/.emacs.d/my-lisp")
  "Here live my lisp packages.")
(add-to-list 'load-path my-lisp-dir t)

(defvar my-autoload (concat my-lisp-dir "/autoload-my.el")
  "Path to autoload for mode files.")
(defvar dot-emacs-pre (expand-file-name "~/.emacs-pre")
  "Path to file with pre-loaded custom settings.")
(defvar dot-emacs-post (expand-file-name "~/.emacs-post")
  "Path to file with post-loaded custom settings.")

;; pre-load custom settings
(if (file-exists-p dot-emacs-pre)
    (load dot-emacs-pre))

(if (file-exists-p my-autoload)
    (load my-autoload))

;; load main customization
(load "~/.emacs-my")

;; post-load custom settings
(if (file-exists-p dot-emacs-post)
    (load dot-emacs-post))

(setq custom-file "~/.emacs-custom.el")
(load custom-file)