aboutsummaryrefslogtreecommitdiffstats
path: root/emacs-d-mode/emacs-d-mode.install
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-04-13 02:59:44 +0200
committerMattias Andrée <maandree@operamail.com>2013-04-13 02:59:44 +0200
commitc52f8889cc8eb52e6a1a6e32ba00fee616cd7536 (patch)
treede2a91cf33528454b36c3671bde63495f5f97335 /emacs-d-mode/emacs-d-mode.install
parentincrease epoch for version parsing (diff)
downloadaur-packages-c52f8889cc8eb52e6a1a6e32ba00fee616cd7536.tar.gz
aur-packages-c52f8889cc8eb52e6a1a6e32ba00fee616cd7536.tar.bz2
aur-packages-c52f8889cc8eb52e6a1a6e32ba00fee616cd7536.tar.xz
adopt emacs-d-mode
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'emacs-d-mode/emacs-d-mode.install')
-rw-r--r--emacs-d-mode/emacs-d-mode.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/emacs-d-mode/emacs-d-mode.install b/emacs-d-mode/emacs-d-mode.install
new file mode 100644
index 0000000..a7f8c2f
--- /dev/null
+++ b/emacs-d-mode/emacs-d-mode.install
@@ -0,0 +1,16 @@
+post_install() {
+ cat << EOF
+==> To set up Emacs to automatically edit files ending in .d[i] using D-mode
+==> add the following to your ~/.emacs file (GNU Emacs) or ~/.xemacs/init.el
+==> file (XEmacs):
+
+ (autoload 'd-mode "d-mode" "Major mode for editing D code." t)
+ (add-to-list 'auto-mode-alist '("\\\.d[i]?\\\'" . d-mode))
+
+EOF
+}
+
+post_upgrade() {
+ post_install $1
+}
+