diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-06-06 01:32:41 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-06-06 01:32:41 +0200 |
commit | 2c726e551d90d20bcd2d78545c369864cc9038e5 (patch) | |
tree | 520615a33c966c729e70e549e859a2c01dc4ba40 /contrib/emacs | |
parent | 9379ea42a9b0afd1abf705bf3300f03d8bbe79f9 (diff) |
Use CSV’s for mintages
Diffstat (limited to 'contrib/emacs')
-rw-r--r-- | contrib/emacs/mintage-mode.el | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/contrib/emacs/mintage-mode.el b/contrib/emacs/mintage-mode.el deleted file mode 100644 index 8cfe036..0000000 --- a/contrib/emacs/mintage-mode.el +++ /dev/null @@ -1,26 +0,0 @@ -;;; mintage-mode.el --- Major mode for mintage data files -*- lexical-binding: t; -*- - -(defconst mintage--number (rx (or digit ?.))) -(defconst mintage--string (rx "\"" (*? (not "\"")) "\"")) -(defconst mintage--unknown (rx ??)) -(defconst mintage--comment (rx bol (* space) ?# (* any))) -(defconst mintage--year (rx bol (= 4 digit) (? ?- (+ (not space))))) - -(defun mintage--font-lock-keywords () - `((,mintage--year . font-lock-constant-face) - (,mintage--number . 'font-lock-number-face) - (,mintage--string . font-lock-string-face) - (,mintage--comment . font-lock-comment-face) - (,mintage--unknown . font-lock-warning-face))) - -;;;###autoload -(add-to-list 'auto-mode-alist (cons "mintages/[a-z]\\{2\\}\\'" 'mintage-mode)) - -;;;###autoload -(define-derived-mode mintage-mode conf-mode "Mintage" - "Major mode for editing euro-cash.eu mintage files" - (setq comment-start "#" - comment-end "") - (setq font-lock-defaults '(mintage--font-lock-keywords))) - -(provide 'mintage-mode) |