Linux Python Howto

Setup Emacs+Python.  Add this to .emacs:

;; -----------------------------------------------------------------------------
;; Python mode
(add-hook 'python-mode-hook
          '(lambda ()
             (pair-mode t)
             (define-key python-mode-map (kbd "RET") 'newline-and-indent)
             (define-key python-mode-map (kbd "C-j") 'newline)
             (hs-minor-mode)
             t))

Install IPython

sudo apt-get install ipython

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: