Re: [sage-support] Text editor for sage on Mac

2013-06-03 Thread Ivan Andrus
Well those paths look suspicious (probably because you changed them). The paths should be `sage --root` + "/local/share/emacs" and `sage --root` + "/sage" respectively. Really, all I can say is copy what appears in the output of sage -f https://bitbucket.org/gvol/sage-mode/downloads/sage_mod

Re: [sage-support] Text editor for sage on Mac

2013-06-03 Thread janusyaner
-- (add-to-list 'load-path "/Applications/sage/to/sage/local/share/emacs") (require 'sage "sage") (setq sage-command "/Applications/sage/to/sage/sage") -- The above is my .emacs file. I changed the path several times but none of them works. On Sunday, June 2, 2013 9:54:27 PM UTC-7, Ivan

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread Michael Welsh
On 2/06/2013, at 1:15 PM, janusya...@gmail.com wrote: > > ow I really need your help. Does anyone know another free text editor that > works for Sage? Much Thanks, Yang. I use TextWrangler. It's a dumb-downed version of BBEdit. It comes from the App Store. Michael -- You received this messag

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread Ivan Andrus
That sounds like you haven't properly updated the load-path. You can't simply use (add-to-list 'load-path "/path/to/sage/local/share/emacs") as I posted (you have to change the path--perhaps you misspelled something?) but you should be able to copy what is printed in the terminal when installi

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread janusyaner
Hi Ivan, This is the error that Emacs reports when I tried to open it. - File Edit Options Buffers Tools Help ("emacs" "test.sage") Loading encoded-kb...done An error has occurred while loading `/Users/yang/.emacs': Fil

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread janusyaner
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/gvo

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread Ivan Andrus
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/

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread janusyaner
Hi William. Thanks for your help. I do want the auto indentation and syntax coloring, but for some reason, even when I was editing python code, the auto indentation didn't work. Besides, the Meta-x python-mode does not work either. On Sunday, June 2, 2013 9:53:32 AM UTC-7, William wrote: > > On

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread William Stein
On Sun, Jun 2, 2013 at 9:48 AM, 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. > Do you want Python synt

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread janusyaner
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 d

Re: [sage-support] Text editor for sage on Mac

2013-06-02 Thread John Cremona
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 ~/.e

[sage-support] Text editor for sage on Mac

2013-06-02 Thread janusyaner
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, Em