Ask Your Question

Sean Lynch's profile - activity

2018-05-13 08:59:36 -0500 received badge  Notable Question (source)
2014-02-12 10:42:40 -0500 received badge  Popular Question (source)
2013-10-10 01:25:54 -0500 received badge  Popular Question (source)
2013-10-01 05:14:54 -0500 received badge  Good Question (source)
2012-06-22 09:44:50 -0500 marked best answer syntax highlighting with sage-mode in emacs

Currently syntax highlighting is only supported in Sage buffers, not in the interactive shell. I have created an issue on bitbucket where you can track the progress. I don't think it will be very difficult, but it's not my highest priority at the moment. Feel free to submit a pull request if you wish.

2012-06-22 08:48:22 -0500 received badge  Nice Question (source)
2012-06-21 06:36:25 -0500 received badge  Student (source)
2012-06-18 08:57:38 -0500 asked a question syntax highlighting with sage-mode in emacs

When I use sage with sage-mode in emacs, I don't get any syntax hightlighting. The sage promt is colored differently but anything I enter at the prompt is colored with the default face. I would assume that in the simplest case, if I was to write some python code it would be colored the same as if I was in a python-mode buffer.

Am i missing something here? I am using sage_mode-0.8.spkg

2012-06-18 08:33:47 -0500 received badge  Supporter (source)
2012-06-18 08:33:44 -0500 commented answer sage-view not working in emacs

That worked great. Thanks.

2012-06-18 08:33:24 -0500 marked best answer sage-view not working in emacs

I need to update the documentation since it seems things changed at some point. Sean Lynch is right that sage-startup-hook is not defined anywhere. What I have in my .emacs is the following:

(add-hook 'sage-startup-after-prompt-hook
          (lambda () (interactive)
            (sage-view 1)
2012-06-18 08:33:24 -0500 received badge  Scholar (source)
2012-06-17 13:45:08 -0500 commented question sage-view not working in emacs

Also, a grep in $SAGE_ROOT/data/emacs doesn't find `sage-startup-hook` defined anywhere. Maybe this changed in the latest version (I'm using 5.0.1)?

2012-06-17 13:22:03 -0500 asked a question sage-view not working in emacs

I'm trying to use sage-view in emacs with sage-mode.

My emacs configuration for Sage is as follows:

(setq sage-dir "~/Programming/Sage/sage-5.0.1")
(add-to-list 'load-path (expand-file-name (concat sage-dir "/data/emacs")))
(require 'sage "sage")
(setq sage-command (concat sage-dir "/sage"))

(require 'sage-view "sage-view")
(add-hook 'sage-startup-hook 'sage-view
    'sage-view-enable-inline-output 'sage-view-enable-inline-plots)

But when emacs starts up, sage-view is not started. I have to manually start it with M-x sage-view.