gdritter repos gelpa / 1159d8d
Added Adnot mode Getty Ritter 8 years ago
3 changed file(s) with 48 addition(s) and 0 deletion(s). Collapse all Expand all
1 ;; adnot-mode.el --- a simple major mode for editing Adnot files.
2
3 ;; Version: 20160402.0000
4 ;; Author: Getty Ritter
5 ;; Url: http://github.com/aisamanra/adnot-mode
6
7 (setq adnot-font-lock
8 '(( "\"\\([^\\]\\|\\\\[\\\"]\\)*\""
9 . font-lock-string-face )
10 ( "(\\([ \n\t\r]*[A-Za-z_][A-Za-z0-9_]*\\)"
11 1 font-lock-keyword-face )
12 ( "\\([A-Za-z][A-Za-z0-9_]*\\)"
13 . font-lock-variable-name-face )))
14
15 (defvar adnot-syntax-table nil "Syntax table for `adnot-mode'.")
16 (setq adnot-syntax-table
17 (let ((table (make-syntax-table)))
18 (modify-syntax-entry ?# "< b" table)
19 (modify-syntax-entry ?\n "> b" table)
20
21 table))
22
23 (define-derived-mode adnot-mode prog-mode
24 "Adnot mode is a major mode for editing Adnot files"
25 :syntax-table adnot-syntax-table
26
27 (setq font-lock-defaults '(adnot-font-lock))
28 (setq mode-name "Adnot mode")
29 (setq comment-start "#")
30 (setq comment-end ""))
31
32 ;;;###autoload
33 (add-to-list 'auto-mode-alist '("\\.adnot\\'" . adnot-mode))
34
35 (provide 'adnot-mode)
36
37 ;;; adnot-mode.el ends here
11 (1
2 (adnot-mode .
3 [ (20160402 0000)
4 nil
5 "A simple major mode for editing Adnot files"
6 single
7 ]
8 )
29 (gidl-mode .
310 [ (20150507 0001)
411 nil
1515 <div>
1616 Packages in <code>gelpa</code> include:
1717 <ul>
18 <li><code>adnot-mode</code> &mdash; minimal major mode for editing
19 <a href="https://github.com/aisamanra/adnot-mode"><code>Adnot</code></a>
20 human-readable data files.
21 </li>
1822 <li><code>gidl-mode</code> &mdash; minimal major mode for editing
1923 <a href="https://github.com/GaloisInc/gidl"><code>gidl</code></a> interface files.</li>
2024 <li><code>ndbl-mode</code> &mdash; minimal major mode for editing