POV-Ray : Newsgroups : povray.unix : emacs pov-mode problem : Re: emacs pov-mode problem Server Time
28 Jul 2024 12:28:05 EDT (-0400)
  Re: emacs pov-mode problem  
From: Steve
Date: 27 Apr 2002 08:55:04
Message: <slrnacl7rk.1bo.steve@zeropps.org.uk>
On Fri, 26 Apr 2002 23:36:10 +0300, Artis wrote:
> Now I have 2.7, it still gives me the same error.


Here's what my .emacs file looks like in the part of it that deals with
pov-mode:

(global-font-lock-mode 1 t)

;; Where did you install the POV-mode?
(setq load-path (cons
"/usr/share/emacs/20.5/lisp/pov-mode.elc" load-path))
(autoload 'pov-mode "pov-mode.elc" "PoVray scene file mode" t)

(setq auto-mode-alist
        (append '(("\\.pov$" . pov-mode) 
                  ("\\.inc$" . pov-mode)
                 ) auto-mode-alist))

(custom-set-faces
 '(region ((((class color) (background dark)) (:foreground
"MidnightBlue" :backg
round "light goldenrod")))))

(add-hook 'pov-mode-hook 'turn-on-font-lock)

This may not be the best way to do some of this stuff but it works for
me. 

I have my .emacs file in my home directory, and I have pov-mode.el in 
/usr/share/emacs/20.5/lisp/, and I have compiled pov-mode to its compiled
byte code alternative of pov-mode.elc.   So above you will need to 
change pov-mode.el for pov-mode.elc.

-- 
#local i=.1;#local I=(i/i)/i;#local l=(i+i)/i;#local ll=(I/i)/l;box{<-ll,
-((I/I)+l),-ll><ll,-l,ll>pigment{checker scale l}finish{ambient((I/l)/I)+
(l/I)}}sphere{<i-i,l-l,(I/l)>l/l pigment{rgb((I/l)/I)}finish{reflection((
I/l)/I)-(l/I)specular(I/l)/I}}light_source{<I-l,I+I,(I-l)/l>l/l} // Steve


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.