Narang <narang@comcast.net> wrote in message
news:<87u1jkehbt.fsf@shakti.sivalik.com>...
> Can anyone provide the settings for scsh specific macros/ functions
> for indentation in emacs.
It's not anything scsh-specific, but I use the following:
(setq scheme-program-name "c:/cygwin/usr/local/bin/scsh")
and have any of my scsh scripts which aren't invoked from the command
line ending in .scm, which uses the standard emacs association. In
fact, the previous line isn't even needed for indentation (e.g. TAB,
indent-region function), it just enables the run-scheme function.
For those scripts which are invoked from the command line, I just run
M-x scheme-mode after loading them.
----------
Actually, that's not what I do at all. I've also got the following
lines in my .emacs:
(setq load-path (cons (expand-file-name "h:/lib/elisp") load-path))
; activate nuweb mode for .w files
(add-to-list 'auto-mode-alist '("\\.w\\'" . nuweb-mode))
; Load nuweb
(require 'nuweb)
(setq-default nuweb-source-mode "scheme")
and generate my Scheme code from nuweb (http://nuweb.sf.net/)
documents. nuweb-mode is in the old Emacs Lisp archive
(http://ftp.unicamp.br/pub/emacs-lisp/elisp-archive/modes/nuweb.el.gz).
|