load agda input method; bypass agda2; keybindings
This commit is contained in:
parent
f6dbc00bc4
commit
f6d6096bf2
1 changed files with 13 additions and 5 deletions
|
@ -2,10 +2,18 @@
|
|||
|
||||
(defvar +agda-dir
|
||||
(when (executable-find "agda-mode")
|
||||
(file-name-directory (shell-command-to-string "agda-mode locate")))
|
||||
"TODO")
|
||||
(file-name-directory (shell-command-to-string "agda-mode locate"))))
|
||||
|
||||
(def-package! agda-input
|
||||
:load-path +agda-dir)
|
||||
|
||||
(def-package! agda2
|
||||
:load-path +agda-dir
|
||||
:defer t)
|
||||
(def-package! agda2-mode
|
||||
:mode "\\.agda\\'"
|
||||
:after agda-input
|
||||
:config
|
||||
(map! :map agda2-mode-map
|
||||
:localleader
|
||||
:n "l" #'agda2-load
|
||||
:n "d" #'agda2-infer-type-maybe-toplevel
|
||||
:n "o" #'agda2-module-contents-maybe-toplevel
|
||||
:n "n" #'agda2-compute-normalised-maybe-toplevel))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue