summarylogtreecommitdiffstats
path: root/slime.install
diff options
context:
space:
mode:
Diffstat (limited to 'slime.install')
-rw-r--r--slime.install31
1 files changed, 31 insertions, 0 deletions
diff --git a/slime.install b/slime.install
new file mode 100644
index 00000000000..14b15a7e1f8
--- /dev/null
+++ b/slime.install
@@ -0,0 +1,31 @@
+post_install() {
+ cat << EOF
+
+:: To make use of slime, add the following lines to your
+:: ~/.emacs.el or ~/.emacs:
+
+(setq inferior-lisp-program "/path/to/lisp-executable")
+(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
+(require 'slime)
+(slime-setup)
+
+:: Then run 'M-x slime' from within emacs.
+
+EOF
+echo "Adding Info-File"
+install-info /usr/share/info/slime.info.gz /usr/share/info/dir
+}
+
+post_upgrade() { post_install; }
+
+pre_remove() {
+echo "Removing Info-File"
+install-info --delete /usr/share/info/slime.info.gz /usr/share/info/dir
+}
+
+post_remove() {
+cat << EOF
+ You may want to remove slime related stuff from your ~/.emacs file
+ especially the inferior-lisp-program variable
+EOF
+} \ No newline at end of file