IDLWAVE takes over [message #37142] |
Tue, 18 November 2003 05:14 |
Jack Saba
Messages: 30 Registered: January 1996
|
Member |
|
|
I am running emacs on a pc, and using ange-ftp to edit files on our unix
machines. We do not have idl on the pc's, and I do not like the editor deciding
where to put text, how to handle tabs, etc. I do like the context highlighting,
and that's the only part of idlwave that seems to be usable in this situation
that I really want. Therefore, thanks to Carsten, I have the following in my
.emacs file:
;;;From Carsten: how to get only syntax highlighting. Posted to comp.emacs in
;;;response to my request.
(define-derived-mode idl-color-mode text-mode
"(IDL color mode)"
"IDLWAVE syntax-highlighting only mode"
(require 'font-lock)
(require 'idlwave)
(set (make-local-variable 'font-lock-defaults)
idlwave-font-lock-defaults)
(set-syntax-table idlwave-mode-syntax-table)
(turn-on-font-lock))
(add-to-list 'auto-mode-alist '("\\.pro" . idl-color-mode))
HOWEVER, since installing the latest version of IDLWAVE, a problem has shown up.
If I fire up IDL and edit a .pro file that is on the pc, emacs enters
idl-color-mode. When I connect to the unix machine and edit a file there, emacs
enters idlwave-mode, NOT idl-color-mode. After that, it used idlwave-mode rather
than idl-color-mode for any .pro files, whether on the pc or on the unix box.
Any suggestions for fixing this? Otherwise, I will go back to an older version.
Jack Saba
<jack.saba@gsfc.nasa.gov>
|
|
|