From ab35fde72b7090c3517ae3c5f89bf74c49aa5325 Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Sat, 15 Feb 2020 20:56:03 +0100 Subject: [PATCH 1/2] k3-mode.el: package for MELPA --- emacs/k3-mode.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/emacs/k3-mode.el b/emacs/k3-mode.el index 572bdc0..b234c12 100644 --- a/emacs/k3-mode.el +++ b/emacs/k3-mode.el @@ -1,4 +1,4 @@ -;;; k3-mode.el -- Emacs mode for the K Framework +;;; k3-mode.el -- Emacs mode for the K Framework -*- lexical-binding: t -*- ;; Updated from k-mode.el to support the new keywords in K3 @@ -7,6 +7,8 @@ ;; (load-library "k3-mode") ;; (add-to-list 'auto-mode-alist '("\\.k$" . k3-mode)) ;; to launch k3-mode for .k files +;;; Commentary: +;; ;; Currently has syntax highlighting for: ;; - keywords ;; - declarations (e.g. ops, syntax, etc) @@ -18,6 +20,8 @@ (require 'comint) +;;; Code: + ;;;; Options ;;;; (defvar k-dash-comments nil "Set to make \"--\" be used as a beginning of a line comment @@ -120,6 +124,7 @@ ;;;; K Mode ;;;; +;;;###autoload (define-derived-mode k3-mode fundamental-mode "k3 mode" "Major Mode for the K3 framwork" @@ -139,4 +144,9 @@ ;;(setq k-keywords nil k-keywords-regex nil) ) +;;;###autoload +(add-to-list 'auto-mode-alist '("\\.k$" . k3-mode)) + (provide 'k3-mode) + +;;; k3-mode.el ends here From 9a0e735cd45434a10a96d5f2ace6048b12e33f6c Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Wed, 26 Feb 2020 14:31:45 +0100 Subject: [PATCH 2/2] emacs/k3-mode.el: add missing semicolon --- emacs/k3-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/k3-mode.el b/emacs/k3-mode.el index b234c12..2c5e0ae 100644 --- a/emacs/k3-mode.el +++ b/emacs/k3-mode.el @@ -1,4 +1,4 @@ -;;; k3-mode.el -- Emacs mode for the K Framework -*- lexical-binding: t -*- +;;; k3-mode.el -- Emacs mode for the K Framework -*- lexical-binding: t; -*- ;; Updated from k-mode.el to support the new keywords in K3