Hi,
I want to run a script which creates a file and then run an emacs function on it.
emacs is not cooperating.
Code:
#! /bin/bash
# Script to produce list of all sketchbook/*/*.ino sorted by sketch name
cd ~/Arduino
find . -name *.ino > ~/ino-summary
cd
emacs \
--batch \
--no-site-file \
--script=/home/jim/ino-summary.el \
--file=/home/jim/ino-summary
Code:
; ino-summary.el
; currently just a place-holder
(goto-char (point-min))
(insert-char ?#)
(save-buffer)
Running it gives me:
Code:
~ $ ./InoSummary
Cannot open load file: no such file or directory, /home/jim/--script=/home/jim/ino-summary.el
~ $ ls -al *.el
-rw-rw-r-- 1 jim jim 341 Mar 4 20:33 ino-summary.el
Why is /home/jim prepended to --script?