Commit 9f7a0c51 authored by hugues.jerome's avatar hugues.jerome

* New binding: M-x compile invokes ocarina to parse AADL file



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/ocarina@1097 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 97671dd7
......@@ -7,6 +7,13 @@
(defvar aadl-mode-hook nil)
; Add support for compilation of AADL files directly from emacs
(require 'compile)
(add-hook 'aadl-mode-hook
(lambda ()
(set (make-local-variable 'compile-command)
(concat "ocarina -aadlv2 -f -p " buffer-file-name))))
(defvar aadl-mode-map
(let ((aadl-mode-map (make-keymap)))
(define-key aadl-mode-map "\C-j" 'new-line-and-indent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment