Indium: Declare functions

This commit is contained in:
James Nguyen 2018-01-14 11:30:16 -08:00
parent a664d8fe3e
commit f0ed016efc
1 changed files with 5 additions and 2 deletions

View File

@ -99,11 +99,14 @@
(kbd "C-k") 'indium-repl-previous-input))
;; FIXME: It would be better for these to go upstream.
(declare-function indium-breakpoint-on-current-line-p "indium-breakpoint")
(declare-function indium-remove-breakpoint "indium-interaction")
(declare-function indium-add-breakpoint "indium-interaction")
(defun evil-collection-indium-debugger-toggle-breakpoint ()
"Toggle breakpoint at point."
(interactive)
(if (and (fboundp 'indium-breakpoint-on-current-line-p)
(indium-breakpoint-on-current-line-p))
(if (indium-breakpoint-on-current-line-p)
(call-interactively #'indium-remove-breakpoint)
(call-interactively #'indium-add-breakpoint)))