Ask Your Question

Sean Lynch's profile - activity

2018-05-13 15:59:36 +0200 received badge  Notable Question (source)
2014-02-12 17:42:40 +0200 received badge  Popular Question (source)
2013-10-10 08:25:54 +0200 received badge  Popular Question (source)
2013-10-01 12:14:54 +0200 received badge  Good Question (source)
2012-06-22 16:44:50 +0200 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 15:48:22 +0200 received badge  Nice Question (source)
2012-06-21 13:36:25 +0200 received badge  Student (source)
2012-06-18 15:57:38 +0200 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 15:33:47 +0200 received badge  Supporter (source)
2012-06-18 15:33:44 +0200 commented answer sage-view not working in emacs

That worked great. Thanks.

2012-06-18 15:33:24 +0200 received badge  Scholar (source)
2012-06-18 15:33:24 +0200 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)
            (sage-view-disable-inline-output)))
2012-06-17 20:45:08 +0200 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 20:22:03 +0200 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.