Hi Ivan,
I have created a .emacs file but it didn't work either. I was using 22.1 
before but then also tried the latest, i.e., 24.3 version of Emacs.

On Sunday, June 2, 2013 10:41:16 AM UTC-7, Ivan Andrus wrote:
>
> Hi Yang,
>
> You install sage-mode like 
>
> sage -i 
> https://bitbucket.org/gvol/sage-mode/downloads/sage_mode-0.9.1.spkg
>
> and then follow the instructions printed, namely adding something like
>
> (add-to-list 'load-path "/path/to/sage/local/share/emacs")
> (require 'sage "sage")
> (setq sage-command "/path/to/sage/sage")
>
> to your .emacs (and then restart Emacs).  You _will_ need to create a 
> .emacs (or .emacs.d/init.el) for it to work.  But if M-x python-mode 
> doesn't work, then you might have other problems with your setup.  What 
> version of Emacs are you using?
>
> -Ivan
>
> On Jun 2, 2013, at 10:48 AM, janus...@gmail.com <javascript:> wrote:
>
> Hi John, that's what I mean. I cannot configure emacs to use sage. What 
> code should I add to my Emacs to make it work? And, in case that I haven't 
> yet create d a .emacs file, should I create one in the home directory? 
> Thanks.
>
> On Sunday, June 2, 2013 3:10:34 AM UTC-7, John Cremona wrote:
>>
>> I don't understand what you mean by an editor such as emacs "not 
>> working" for Sage code.  Sage code is just text, and I have never used 
>> anything other than emacs to edit it -- not on a Mac, but why would 
>> that make a difference?  I have emacs configured to use python-mode, I 
>> just have a line in ~/.emacs which tells it to do that for any file 
>> with a .sage suffix, though I normally use .py suffix for Sage 
>> programming anyway. 
>>
>> John Cremona 
>>
>>
>> On 2 June 2013 02:15,  <janus...@gmail.com> wrote: 
>> > Hi there, 
>> > 
>> > I was using Emacs to write codes in other language for a while, but 
>> when I tried to change some sage code using Emacs, it seems not working. I 
>> went to the Sage-Mode page maintained by Ivan Andrus and downloaded several 
>> versions of the SPKG files. However, after opening these files, Emacs still 
>> cannot handle Sage at all. Then I searched for some text editors, like 
>> Komodo, which works perfectly for Python but does not work for Sage. Now I 
>> really need your help. Does anyone know another free text editor that works 
>> for Sage? Much Thanks, Yang. 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups "sage-support" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to sage-support...@googlegroups.com. 
>> > To post to this group, send email to sage-s...@googlegroups.com. 
>> > Visit this group at http://groups.google.com/group/sage-support?hl=en. 
>> > For more options, visit https://groups.google.com/groups/opt_out. 
>> > 
>> > 
>>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support...@googlegroups.com <javascript:>.
> To post to this group, send email to sage-s...@googlegroups.com<javascript:>
> .
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to