1 ;;; autostart22.el --- Example of autostart file for Emacs22
3 ;; Author: Lennart Borgman (lennart O borgman A gmail O com)
4 ;; Created: 2009-01-01 Thu
6 ;; Last-Updated: 2009-01-05 Mon
11 ;; Features that might be required by this library:
13 ;; This file is for Emacs 22 only.
15 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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.
22 ;; NOTICE: You need to enter the path to your nxml-mode installation
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
30 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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.
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.
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.
47 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
51 (let ((debug-on-error t))
52 (if (/= emacs-major-version 22)
53 (message "This file (autostart22.el) is for Emacs 22 only")
55 (defalias 'Custom-mode 'custom-mode)
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
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))))
68 (provide 'autostart22)
70 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
71 ;;; autostart22.el ends here