Dear all,
I have a little problem using pov-mode with emacs:
I placed pov-mode.el in the directory /home/skassboh/emacs/site-lisp/.
I added the chunk
----------
;; Povray mode;; Where did you install the POV-mode? Change the path to
whatever
;; it's supposed to be
(setq load-path (cons "/home/skassboh/emacs/site-lisp/" load-path))
;; Set autoloading of POV-mode for these file-types.
(autoload 'pov-mode "pov-mode.el" "PoVray scene file mode" t)
(setq auto-mode-alist
(append '(("\.pov$" . pov-mode)
("\.inc$" . pov-mode)
) auto-mode-alist))
----------
in my .emacs file.
Then the pov-mode should work, whenever I open a buffer ending with .pov
after .emacs is loaded.
Instead I get the following error message from emacs:
Loading /home/skassboh/.emacs...done
(New file)
Loading pov-mode.el (source)...
("/home/skassboh/emacs/site-lisp/" . "/usr/share/emacs/21.3/etc/")
File mode specification error: (wrong-type-argument listp
"/usr/share/emacs/21.3/etc/")
Anybody out there who can help?
Thanks,
S.K.
I don't know what could be the problem. I myself have these lines in
my .emacs:
(autoload 'pov-mode "/full/path/to/pov-mode.elc" "PoVray scene file mode" t)
(setq auto-mode-alist
(append '(("\\.pov$" . pov-mode)
("\\.inc$" . pov-mode))
auto-mode-alist))
(add-hook 'pov-mode-hook 'turn-on-font-lock)
The .elc file was created by byte-compiling the .el file (should be more
efficient). This happens with "esc x byte-compile-file".
I'm not using the latest pov-mode.el though. I have an older versions
with some of my own additions.
--
- Warp