Differences between revisions 10 and 11
Revision 10 as of 2014-06-03 03:40:04
Size: 1479
Editor: iandrus
Comment: Fixed link
Revision 11 as of 2014-09-18 16:29:32
Size: 1802
Editor: iandrus
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
tests, etc. tests, typesetting output, etc.
Line 15: Line 15:

== Sage-shell-mode ==

This is another newer mode for Sage inside emacs. It's known as sage-shell-mode and includes extensions for auto-complete, helm, and anything. It was written from scratch by Sho Takemori and is available from MELPA.

See: [[https://github.com/stakemori/sage-shell-mode]]

Sage and Emacs

The purpose of this page is to collect tips and tricks for Sage users and developpers using the text editor Emacs.

Sage-mode

This emacs mode allows for running a Sage interpreter inside emacs, and interacting with it sending in chunks of code or doctests, directly opening the appropriate source files from the help, the debugger or the tracebacks. It also provides goodies for running tests, typesetting output, etc.

See: sage-mode or http://bitbucket.org/gvol/sage-mode

Sage-shell-mode

This is another newer mode for Sage inside emacs. It's known as sage-shell-mode and includes extensions for auto-complete, helm, and anything. It was written from scratch by Sho Takemori and is available from MELPA.

See: https://github.com/stakemori/sage-shell-mode

EIN: IPython notebook client in Emacs

https://github.com/tkf/emacs-ipython-notebook

This is currently non functional due to an incompatibility with the ipython shipped with Sage. Yet this sounds promising. See:

- https://github.com/tkf/emacs-ipython-notebook/issues/131 - http://trac.sagemath.org/ticket/16053

Miscellaneous

- which-function-mode: this minor mode displays in the status bar the

  • name of the class or function being edited. This is a life saver for code with nested classes, and in particular category code. Setup: M-x customize-variable which-function-mode

- I (NT) have this in my python-mode-hook:

  •   (set-variable 'indent-tabs-mode nil)
      (set-variable 'py-indent-offset 4)
    This might not be so relevant with recent versions of emacs.

See also

- This (not sot recent) blog post on customizing emacs for Python

Emacs (last edited 2023-02-23 20:10:56 by mkoeppe)