|
![](/i/fill.gif) |
On Sat, 27 Apr 2002 16:39:42 +0300, Artis wrote:
> Hmmm.. I get the same error and some weird highlighting, but stil in
> fundamental mode.
>
I just type:
$ emacs somethg.pov &
and it opens a new emacs window, if you run it in an xter or rxvt you
may get somthing different, you certainly won't get the syntax hilighting
in an xter or rxvt.
I've just tried and I don't get any error messages in an rxvt.
here is my complete .emacs file, there may be some things in it that
are needed, it's so long since I set this up that I can't remember.
I've removed some comments, and changed all instances of .elc to .el
for you, you will still need to change tha path to pov-mode.el in this
file to reflect where it is on your system. And here is an example of
what it looks like on my system (though I've made some changes to
.Xdefaults which make some difference to my emacs window but they
shouldnt matter here). http://www.btinternet.com/~zeropps/emacs.png
and here is my .emacs file as explained above:
;; .emacs initialization file
(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.el" load-path))
(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))
(custom-set-faces
'(region ((((class color) (background dark)) (:foreground "MidnightBlue" :background
"light goldenrod")))))
(add-hook 'pov-mode-hook 'turn-on-font-lock)
;; 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)
;; Make F9 change case.
(global-set-key [f9] 'downcase-region)
(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)
--
%HAV-A-NICEDAY email mailto:ste### [at] zeropps uklinux net
Steve web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
3:45pm up 8 days, 12:25, 1 user, load average: 1.02, 1.26, 1.29
Post a reply to this message
|
![](/i/fill.gif) |