From c52f8889cc8eb52e6a1a6e32ba00fee616cd7536 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 13 Apr 2013 02:59:44 +0200 Subject: adopt emacs-d-mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- emacs-d-mode/emacs-d-mode.install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 emacs-d-mode/emacs-d-mode.install (limited to 'emacs-d-mode/emacs-d-mode.install') 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 +} + -- cgit v1.2.3-70-g09d2