summarylogtreecommitdiffstats
path: root/emacs-ipython-mode.install
diff options
context:
space:
mode:
authorP. A. López-Valencia2015-07-07 18:09:40 -0500
committerP. A. López-Valencia2015-07-07 18:09:40 -0500
commit9c6bab30890cf3489b963a9a5f0088787fe5e528 (patch)
treeec0d137fc443a6213464c39ecfeecc4974bdfc77 /emacs-ipython-mode.install
downloadaur-emacs-ipython-mode.tar.gz
2927-1
Diffstat (limited to 'emacs-ipython-mode.install')
-rw-r--r--emacs-ipython-mode.install21
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
+
+}
+