diff options
author | P. A. López-Valencia | 2015-07-07 18:09:40 -0500 |
---|---|---|
committer | P. A. López-Valencia | 2015-07-07 18:09:40 -0500 |
commit | 9c6bab30890cf3489b963a9a5f0088787fe5e528 (patch) | |
tree | ec0d137fc443a6213464c39ecfeecc4974bdfc77 /emacs-ipython-mode.install | |
download | aur-emacs-ipython-mode.tar.gz |
2927-1
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 + +} + |