module: add :lang ada

This commit is contained in:
Henrik Lissner
2025-09-13 18:00:36 -04:00
parent 9dbeafe212
commit 286f04c6ef
6 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
;;; lang/ada/auoload.el -*- lexical-binding: t; -*-
(defun +ada--barf-unless-project ()
(unless (locate-dominating-file defaul-directory "alire.toml")
(user-error "Not inside an Alire project")))
;;;###autoload
(defun +ada/alr-build ()
"Run 'alr build' in the current project."
(interactive)
(+ada--barf-unless-project)
(compile "alr build"))
;;;###autoload
(defun +ada/alr-run ()
"Run 'alr run' in the current project."
(interactive)
(+ada--barf-unless-project)
(compile "alr run"))
;;;###autoload
(defun +ada/alr-clean ()
"Run 'alr clean' in the current project."
(interactive)
(+ada--barf-unless-project)
(compile "alr clean"))