shell-script-mode
Emilie Vanvyve <[email protected]>
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Message-ID | <[email protected]> |
Hello ! It's about a problem of fontifying my files in the shell-script-mode. I use 2 XEmacs programs. One is the version 21.4 (patch 9) on a Macintosh computer (Darwin environment, Mac OS 10.2.8, where I can change whatever I want) ; the other is the version 21.4 (patch 14) on another machine (alpha-dec-osf5.0, where I can NOT change anything (it's not mine, I just have the home that I can customize as I want, more or less)). They are assumed to be the same. The problem is the following : on the Mac, when I open my script files, XEmacs automatically recognizes that they are shell scripts and automatically turns to the major mode 'shell-script' and fontifies also all according to my colours set-up. No matters if they are in ksh or bash, it works. On the other machine, it does not work. I have no 'shell-mode-script' and still this morning not even a 'ksh-mode'. So it's impossible to fontify my files as I would like them to be fontified (they are too big to be used without colours). I succeeded this morning to force XEmacs to know the 'ksh-mode' : I copy the ksh-mode.el (and .elc) from the Mac, into a .xemacs/lisp/ directory I created and my init.el file (or .emacs or custom.el ...) calls it with : (setq load-path (cons (expand-file-name "~/.xemacs/lisp/") load-path)) (require 'ksh-mode) So, now, when I open XEmacs from the second machine, I can say M-x ksh-mode. But still it is not automatic and the colours do not fit to what I asked in the preferences. I think it would be better if my major mode was 'shell-script-mode' and not 'ksh-mode', but as I don't have it on this machine and as I don't find it on the Mac (so that I could copy it from the Mac, as for the ksh-mode.el(c)) ... Please, does anybody have any idea ??? I don't yet understand really well the init/custom/.emacs.el syntax, I'm blocked and I absolutely need this shell-script mode ! Emilie V.