diff options
Diffstat (limited to 'emacs-ipython-mode.install')
-rw-r--r-- | emacs-ipython-mode.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/emacs-ipython-mode.install b/emacs-ipython-mode.install new file mode 100644 index 000000000000..2609352b7eab --- /dev/null +++ b/emacs-ipython-mode.install @@ -0,0 +1,21 @@ +#!/bin/bash + +post_install() { + + echo "" + echo "To enable auto-loading of ipython-mode, add these lines to your .emacs file:" + echo "" + echo "(autoload 'python-mode \"python-mode.el\" \"Python mode.\" t)" + echo "(setq auto-mode-alist (append '((\"/*.\.py$\" . python-mode)) auto-mode-alist))" + echo '(setq ipython-command "/usr/bin/ipython")' + echo '(setq py-python-command "/usr/bin/ipython")' + echo "(require 'ipython)" + echo "" +} + +post_upgrade() { + + post_install + +} + |