Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling Juvix Input mode causes a weird error with evil #20

Open
mariari opened this issue Nov 1, 2024 · 1 comment
Open

Disabling Juvix Input mode causes a weird error with evil #20

mariari opened this issue Nov 1, 2024 · 1 comment

Comments

@mariari
Copy link
Member

mariari commented Nov 1, 2024

This is rather minor as it does not cause any real harm, but if one disables juvix input mode and go to a new file, a stack trace like this shows up.

@mariari
Copy link
Member Author

mariari commented Nov 7, 2024

I found out which part of the mode causes it

(define-derived-mode juvix-mode prog-mode (juvix-version)
  (font-lock-mode 0)
  (when juvix-auto-input-method
    (set-input-method "juvix"))
  (setq-local comment-start "--")

  (add-hook
   'juvix-mode-hook
   (lambda ()
     ;; (with-eval-after-load 'evil
     ;;   (evil-define-key 'normal juvix-mode-map (kbd "SPC m l") 'juvix-load)
     ;;   (evil-define-key 'normal juvix-mode-map (kbd "SPC m g") 'juvix-goto-definition)
     ;;   (evil-define-key 'normal juvix-mode-map (kbd "SPC m f") 'juvix-format-buffer)
     ;;   (evil-define-key 'normal juvix-mode-map (kbd "g d") 'juvix-goto-definition)
     ;;   (evil-normalize-keymaps)
     ;;   (add-hook 'post-command-hook #'juvix-posframe-at-pt)
     ;;   (juvix-insert-top-module-name)
     ;;   (juvix-load))
     )))

Commenting out this part fixes my issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant