POV-Ray : Newsgroups : povray.general : cross-platform editor : Re: cross-platform editor Server Time
6 Aug 2024 21:43:02 EDT (-0400)
  Re: cross-platform editor  
From: Steve
Date: 30 Jan 2002 13:08:08
Message: <slrna5g4ek.s50.steve@zero-pps.localdomain>
On Tue, 29 Jan 2002 21:13:57 +0100, Fabien HENON wrote:
>I have started Xemacs. There was supposed to be something like .emacs or 
>  .xemacs in which to put a line (for pov-mode.el) in ~home.
>
>
>Either as root or a normal user I never managed to find that file. Where 
>  else can it be.
>
>Thanks for any help
>

You can create the .emacs file in your home directory, just open up an 
editor and put the appropriate text in there. 

Below is a copy of the stuff I have in my .emacs:

(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)
(pc-selection-mode)
(setq scroll-step 1)
(setq next-line-add-newlines nil)
(setq visible-bell t)
(setq column-number-mode t) 
(setq frame-title-format "%b")
;(custom-set-variables)
(show-paren-mode 1)
(setq make-backup-files nil)
;; put as much syntax highlighting into documents as possible
(setq font-lock-maximum-decoration t)

;;  enable syntax-highlighting
 (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" :background
"light
goldenrod")))))

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

;; Now add some useful keys. 

;; Make F2 be `save-buffer'
(global-set-key [f2] 'save-buffer)

;; Make F3 be "Exit emacs".
(global-set-key [f3] 'kill-emacs)

;; Make F5 be "Goto line".
(global-set-key [f5] 'goto-line)

;; Make F8 refontify the buffer. 
(global-set-key [f8] 'font-lock-fontify-buffer)

(setq indent-level 'nil)
(setq perl-mode-indent-level 'nil)
(setq comment-start-skip 'nil)

;;(show-paren-mode 1)
(custom-set-variables
 '(cperl-indent-level 0)
 '(cperl-min-label-indent 0)
 '(cperl-close-paren-offset 0))

(put 'downcase-region 'disabled nil) 

;;;;;;;;;;;;;;;; END OF .EMACS FILE ;;;;;;;;;;;;;;;;;;;;;;;

I've put some extra key bindings in that I find useful. 
F2 is save current buffer, F3 is exit emacs without saving. 
F5 promps for a line number, so type the line number and 
press return and emacs goes to that line. 

For working in Linux you may also find PovMenu useful it's a basic menu
system for running pov commands and handeling the output etc, you can 
find it at my webpages here:

http://www.zeropps.uklinux.net/linstuff.html#POVMENU

Hope you find some of that helpful, and if something doesn't work or if
you are still having difficulties feel free to mail me. 

--
#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.