vpython-emacs-mode
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:my vpython.el mode for ipython
vpython-emacs-mode
==================

My vpython.el mode for ipython. Has *the* most essential feature: step-through
script line-by-line by pressing ctrl-n.  I don't know how anybody gets
anything done without this feature, and every other 'python mode for emacs'
seems to be missing it.


Documentation from the top of the vpython.el file:

 vpython-3.92
 tuned specifically for ipython use.

 vpython.el     - is a pair of modes for sending lines from a 
                  script (sender) to a comint-started inferior 
                  (receiver) process. We  use ctrl-n by default as 
                  the "send this line and step" key. This enables 
                  one to step through scripts easily when working
                  with an interpreter, such as ipython, python, Pure, 
                  R, Haskell, shell, and so forth. Functions for
                  stepping through s-expressions for Lisp and 
                  Scheme work are also available. This file is
                  by default (in this version) setup for ipython.
                  It should be saved as vpython.el in your ~/.emacs.d/
                  directory. The ipython executable should be already
                  in your path.

 License:      This minimal pair of (major and inferior) modes
               was derived from the Emacs Octave Support modes in 
               octave-mod.el and octave-inf.el, with a little help 
               (and alot of inspiration) from the ess-mode.el for
               R. As such it falls under the GNU General Public
               License version 3 or later.

 Copyright (C) 2012, Author: Jason E. Aten

 how to install:

 (1) If you are changing which interpreter you want to use, examine
     and adjust the "commonly-adjusted parameters" section just below.

 (2) Copy (this file) vpython.el into your ~/.emacs.d/  directory.

 (3) Then put this in your .emacs:

    (load "/home/jaten/.emacs.d/vpython.el") ; adjust path to fit your home directory.
    (require 'vpython-mode)
    (global-set-key "\C-n" 'vpython-send-line)

 (4) Optionally for speed, M-x byte-compile-file  
                           ~/.emacs.d/vpython.el 

 (5) To use, do 'M-x run-vpython' to start the interpreter. Open
     your script and in the script buffer do 'M-x vpython-mode'.

     Or, open a file with an automatically recognized extension
     (as specified below) and press 'C-n' on the first line
     you want executed in the interpreter.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。