lptf 480 B

123456789101112131415
  1. #!/bin/zsh
  2. # my-init.org [[nil][printout-script]]
  3. [ $# -eq 0 ] && { echo "Usage $0: file1 file2 ... fileN" ; exit 1; }
  4. for file in $*
  5. do
  6. [ -f $file ] \
  7. && emacs -q -Q --no-init -nw \
  8. -l "~/.emacs.d/general-print-file.el" \
  9. --file $file \
  10. --eval "(ps-print-buffer-with-faces)" \
  11. --eval "(kill-emacs)" \
  12. || echo "File does not exist: $file"
  13. done
  14. # End my-init.org [[nil][printout-script]]