Commits

Ivan Andrus  committed 5d9ae43

Improved message about how to install in your .emacs

  • Participants
  • Parent commits 63452ed

Comments (0)

Files changed (2)

 
 == Special Update/Build Instructions ==
 
-After installation of the spkg, you must add something like the
-following to your .emacs:
+;; Start .emacs
 
-;; Start .emacs
-(add-to-list 'load-path (expand-file-name "$SAGE_DATA/emacs"))
+
+;; After installation of the spkg, you must add something like the
+;; following to your .emacs:
+
+(add-to-list 'load-path "$SAGE_DATA/emacs")
 (require 'sage "sage")
 (setq sage-command "$SAGE_ROOT/sage")
 
 ;; (add-hook 'sage-startup-after-prompt-hook 'sage-view-disable-inline-output)
 ;; (add-hook 'sage-startup-after-prompt-hook 'sage-view-disable-inline-plots)
 ;; to enable some combination of features.
+
+;; Also consider running (customize-group 'sage) to see more options.
+
 ;; End .emacs
 
 

File spkg-install

 rm -rf $SAGE_DATA/emacs
 cp -r emacs $SAGE_DATA/emacs
 
-cat <<EOF
-
-
-A basic install might include the following Emacs Lisp in your .emacs:
-
-(add-to-list 'load-path (expand-file-name "$SAGE_DATA/emacs"))
-(require 'sage "sage")
-(setq sage-command "$SAGE_ROOT/sage")
-
-;; If you want sage-view to typeset all your output and have plot()
-;; commands inline, uncomment the following line and configure sage-view:
-;; (require 'sage-view "sage-view")
-;; (add-hook 'sage-startup-hook 'sage-view)
-;; You can use commands like
-;; (add-hook 'sage-startup-hook 'sage-view
-;; 'sage-view-disable-inline-output 'sage-view-disable-inline-plots)
-;; to have some combination of features.  In future, the customize interface
-;; will make this simpler... hint, hint!
-
-
-EOF
+# Trick the shell into expanding $SAGE_DATA and $SAGE_ROOT
+sh -c "cat <<EOF
+$(perl -ne 'print if (/Start .emacs/../End .emacs/)' SPKG.txt)
+EOF"