add definition lookup handler to agda module
This commit is contained in:
parent
1456108d5b
commit
1fa4516cad
1 changed files with 31 additions and 30 deletions
|
@ -7,9 +7,10 @@
|
||||||
(unless (require 'agda2 nil t)
|
(unless (require 'agda2 nil t)
|
||||||
(message "Failed to find the `agda2' package")))
|
(message "Failed to find the `agda2' package")))
|
||||||
|
|
||||||
|
(after! agda2-mode
|
||||||
(map! :after agda2-mode
|
(set-lookup-handlers! 'agda2-mode
|
||||||
:map agda2-mode-map
|
:definition #'agda2-goto-definition-keyboard)
|
||||||
|
(map! :map agda2-mode-map
|
||||||
:localleader
|
:localleader
|
||||||
"?" #'agda2-show-goals
|
"?" #'agda2-show-goals
|
||||||
"." #'agda2-goal-and-context-and-inferred
|
"." #'agda2-goal-and-context-and-inferred
|
||||||
|
@ -36,4 +37,4 @@
|
||||||
"d" #'agda2-remove-annotations
|
"d" #'agda2-remove-annotations
|
||||||
"h" #'agda2-display-implicit-arguments
|
"h" #'agda2-display-implicit-arguments
|
||||||
"q" #'agda2-quit
|
"q" #'agda2-quit
|
||||||
"r" #'agda2-restart))
|
"r" #'agda2-restart)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue