lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs indenting script


From: Trevor Daniels
Subject: Emacs indenting script
Date: Mon, 21 Dec 2009 11:24:57 -0000

I tried the Emacs indenting script from
CG 8.5.5 but it doesn't seem to do anything
useful.  Maybe I'm missing something, so I
need some help from an Emacs literatus so
I can get it working and fix the CG instructions.

As I don't know what the script is supposed
to do maybe it's working correctly, but it
certainly did not indent a scm file properly.

Here's what I did.

1. Copied the script from CG 8.5.5 and installed it.
  It says:

#!/bin/sh
emacs $1 -batch --eval '(indent-region (point-min) (point-max) nil)' -f save-buffer


2. Slightly modified a .scm file to screw up
  the indenting on a couple of lines

3. Ran the script on the file.  It said:

Loading 00debian-vars...
No /etc/mailname. Reverting to default...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)... Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Loading /etc/emacs/site-start.d/50emacs-intl-fonts.el (source)...
Loading /etc/emacs/site-start.d/50git-core.el (source)...
(No changes need to be saved)

and indeed no changes were made to the
incorrectly-indented file.

Maybe I need to install something in Emacs first?

Trevor







reply via email to

[Prev in Thread] Current Thread [Next in Thread]