From 44d90481a3f869a0b9b4aa25d7365f235d9a9cfa Mon Sep 17 00:00:00 2001 From: Marek L Date: Thu, 13 Jun 2024 21:14:10 +0100 Subject: [PATCH] Specify `--` as comment syntax for ipkg mode Why: To avoid prompt when executing `comment-*` function in `*.ipkg` file. ``` comment-normalize-vars: No comment syntax defined ``` --- idris-ipkg-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idris-ipkg-mode.el b/idris-ipkg-mode.el index 597341c..335bf64 100644 --- a/idris-ipkg-mode.el +++ b/idris-ipkg-mode.el @@ -422,7 +422,8 @@ Invokes `idris-ipkg-mode-hook'." (set (make-local-variable 'font-lock-defaults) idris-ipkg-font-lock-defaults) (set (make-local-variable 'completion-at-point-functions) - '(idris-ipkg-complete-keyword))) + '(idris-ipkg-complete-keyword)) + (set (make-local-variable 'comment-start) "--")) ;; Make filenames clickable (add-to-list 'compilation-error-regexp-alist-alist