File: melt-mode.el

package info (click to toggle)
ocaml-melt 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 608 kB
  • ctags: 1,580
  • sloc: ml: 4,288; makefile: 156; lisp: 11; sh: 2
file content (15 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(defvar melt-mode-hook nil)

(add-to-list 'auto-mode-alist '("\\.mlt\\'" . melt-mode))

(defun melt-mode ()
  "Major mode for editing Melt file"
  (tuareg-mode)
  (run-hooks 'melt-mode-hook)
)

(add-hook 'melt-mode-hook
      '(lambda ()
          ; cheap disactivation of literal and comments
         (defun tuareg-in-literal-or-comment () (cons nil nil))
         ))