From 78da79a575cf44e985ea1a90361ff9cadc20f416 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 11 Dec 2014 22:23:52 -0500 Subject: [PATCH] [emacs] Add mscgen-mode --- .emacs.d/mscgen-mode.el | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .emacs.d/mscgen-mode.el diff --git a/.emacs.d/mscgen-mode.el b/.emacs.d/mscgen-mode.el new file mode 100644 index 0000000..519b3ac --- /dev/null +++ b/.emacs.d/mscgen-mode.el @@ -0,0 +1,48 @@ +;;; swig-mode.el + +;; Copyright 2014 Theldoria +;; +;; Author: theldoria@hotmail.com +;; Time-stamp: <2014-03-10 10:15:19 roland> +;; Version: 0.1 + +;; This file is not part of GNU Emacs. + +;; This file is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 2 of the License, or +;; (at your option) any later version. + +;; It is distributed in the hope that it will be useful, but WITHOUT +;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public +;; License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with it. If not, see . + +;;; Commentary: + +;; + +;; Put this file into your load-path and the following into your ~/.emacs: +;; (require 'mscgen-mode) + +;;; Code: + +(eval-when-compile + (require 'cl)) + +;;; Options + +;;;###autoload +(define-derived-mode mscgen-mode + dot-mode "mscgen" + "Major mode for mscgen." + (interactive)) + +(add-to-list 'auto-mode-alist '("\\.\\(i\\|msc\\)$" . mscgen-mode)) + +(provide 'mscgen-mode) + +;;; mscgen-mode.el ends here