# HG changeset patch # User Oleksandr Gavenko # Date 1265232384 -7200 # Node ID 292c9ded7c63d7d0efef264968e7de6e385eeeae # Parent 5524c165e7ad4c81f62939d3a5e0f33d646be010 Describe new load order. diff -r 5524c165e7ad -r 292c9ded7c63 .emacs --- a/.emacs Wed Feb 03 23:00:46 2010 +0200 +++ b/.emacs Wed Feb 03 23:26:24 2010 +0200 @@ -4,7 +4,8 @@ ;; ;; This file placed in public domain. ;; -;; ~/.emacs firstly load ~/.emacs-pre, then ~/.emacs-my, then ~/.emacs-post. +;; ~/.emacs firstly load ~/.emacs-pre, then autoloads for mode files, +;; then ~/.emacs-my, then ~/.emacs-post and finally saved customisations. ;; ====================================================================== ;; Load path. diff -r 5524c165e7ad -r 292c9ded7c63 INSTALL --- a/INSTALL Wed Feb 03 23:00:46 2010 +0200 +++ b/INSTALL Wed Feb 03 23:26:24 2010 +0200 @@ -6,21 +6,26 @@ * Install note for .emacs. -* Config file. - -Файл настроек имеет имя ".emacs". При загрузке emacs он ищется по пути "$HOME/.emacs". +* Config files structure. -Из-за наличия в .emacs блока с функцией custom-set-variables, содержимое которого может -меняться при настройке emacs через C-x customize, я решил хранить основные настройки в -файле ".emacs-my". +Main Emacs config file is '~/.emacs'. I decide don't store beside it all +customisations. Instead it simply load files in such order: -* Организация файлов настроек. - -По умолчанию код .emacs загружает файл "$HOME/.emacs-pre", затем -"$HOME/.emacs-my", затем "$HOME/.emacs-post". - -".emacs-my" хранит общие настройки для всех инсталляций, файлы ".emacs-pre" и -".emacs-post" содержат настройки для локальной инсталляции. + '~/.emacs-pre' + For manually written customisation (usually for updating + load-path) which can affect on '.emacs-my'. Don't overridden + on installing. + '~/.emacs.d/my-lisp/autoload-my.el' + For defining autoload function for modes (instead loading all + mode files to save startup time). Automatically generated. + '~/.emacs-my' + Here main customisations placed. + '~/.emacs-post' + For storing connection settings and loading modes added to + load-path in ~/.emacs-pre. Don't overridden on installing. + '~/.emacs-custom.el' + For storing customisations by Emacs itself. Don't overridden + on installing. * Setup on Windows.