;;; site-start.el --- Common site-start, will start user siste-start ;; ;; Author: Lennart Borgman (lennart O borgman A gmail O com) ;; Created: 2008-07-21T23:48:58+0200 Mon ;; Version: 0.5 ;; Last-Updated: 2008-07-22T00:04:41+0200 Mon ;; URL: ;; Keywords: ;; Compatibility: ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Commentary: ;; ;; Written for the Debian packaging problem. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Change log: ;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation; either version 2, or ;; (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program; see the file COPYING. If not, write to ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth ;; Floor, Boston, MA 02110-1301, USA. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Code: (message "Common site-start running ...") ;; Load the users site-start file. (let* ((this-dir (file-truename (file-name-as-directory (file-name-directory (if load-file-name load-file-name buffer-file-name))))) (load-path (mapcar (lambda (path) (unless (string= this-dir (file-truename (file-name-as-directory (expand-file-name path)))) path)) load-path))) (setq load-path (delq nil load-path)) ;;(message "this-dir=%s" this-dir) ;;(with-current-buffer "*Messages*" (insert (pp-to-string load-path))) (let ((user-site-start (locate-library "site-start"))) (if user-site-start (progn (message "SITE-START: Loading user %s" user-site-start) (load-file user-site-start)) (message "SITE-START: There was no user specific site-start.el(c)")))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; site-start.el ends here