1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00

[emacs] Add load and goto def keybindings

This commit is contained in:
Paul Cadman 2022-04-06 17:01:45 +01:00
parent 482c8ecc77
commit d42a9da0e5

View File

@ -12,6 +12,8 @@
map)
"Keymap for MiniJuvix mode.")
(evil-define-key 'normal 'global (kbd "<localleader>l") 'minijuvix-load)
(add-hook 'minijuvix-mode-hook #'evil-normalize-keymaps)
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.m?juvix\\'" . minijuvix-mode))
@ -25,14 +27,10 @@
(add-hook
'minijuvix-mode-hook
(lambda ()
(eval-after-load 'evil-maps
'(evil-leader/set-key
"l" 'minijuvix-load
"g" 'minijuvix-goto-definition
))
))
)
(with-eval-after-load 'evil-maps
(evil-define-key 'normal minijuvix-mode-map (kbd "SPC m l") 'minijuvix-load)
(evil-define-key 'normal minijuvix-mode-map (kbd "SPC m g") 'minijuvix-goto-definition)
(evil-normalize-keymaps)))))
(defun minijuvix-clear-annotations ()
"Remove all annotations from the current buffer."