initial commit
[emacs-init.git] / nxhtml / autostart22.el
1 ;;; autostart22.el --- Example of autostart file for Emacs22
2 ;;
3 ;; Author: Lennart Borgman (lennart O borgman A gmail O com)
4 ;; Created: 2009-01-01 Thu
5 ;; Version:
6 ;; Last-Updated: 2009-01-05 Mon
7 ;; URL:
8 ;; Keywords:
9 ;; Compatibility:
10 ;;
11 ;; Features that might be required by this library:
12 ;;
13 ;;   This file is for Emacs 22 only.
14 ;;
15 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16 ;;
17 ;;; Commentary:
18 ;;
19 ;; Change this file according to the path of your nxml-mode dir. If
20 ;; you do not use nxml-mode then just use autostart.el.
21 ;;
22 ;; NOTICE: You need to enter the path to your nxml-mode installation
23 ;; below.
24 ;;
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
26 ;;
27 ;;; Change log:
28 ;;
29 ;;
30 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
31 ;;
32 ;; This program is free software; you can redistribute it and/or
33 ;; modify it under the terms of the GNU General Public License as
34 ;; published by the Free Software Foundation; either version 2, or
35 ;; (at your option) any later version.
36 ;;
37 ;; This program is distributed in the hope that it will be useful,
38 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
39 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
40 ;; General Public License for more details.
41 ;;
42 ;; You should have received a copy of the GNU General Public License
43 ;; along with this program; see the file COPYING.  If not, write to
44 ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth
45 ;; Floor, Boston, MA 02110-1301, USA.
46 ;;
47 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
48 ;;
49 ;;; Code:
50
51 (let ((debug-on-error t))
52   (if (/= emacs-major-version 22)
53       (message "This file (autostart22.el) is for Emacs 22 only")
54
55     (defalias 'Custom-mode 'custom-mode)
56
57     (let* ((this-file (or load-file-name buffer-file-name))
58            (this-dir (file-name-directory this-file))
59            ;; FIX-ME: Download nXml (since it is not included in Emacs
60            ;; 22) and place the path to rng-auto.el in your downloaded
61            ;; nXml HERE:
62            (rng-auto-file (or (locate-library "rng-auto.el")
63                               "c:/emacs/u/081231/EmacsW32/nxhtml/nxml-mode-20041004/rng-auto.el")))
64       (unless (file-exists-p rng-auto-file)
65         (error "Can't find rng-auto.el, please edit %s" this-file))
66       (load rng-auto-file))))
67
68 (provide 'autostart22)
69
70 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
71 ;;; autostart22.el ends here