branch: elpa/idris-mode
commit 44d90481a3f869a0b9b4aa25d7365f235d9a9cfa
Author: Marek L <nospam.ke...@gmail.com>
Commit: Marek L <nospam.ke...@gmail.com>

    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 597341cae0..335bf64028 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

Reply via email to