[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to build with Alire
From: |
Left Right |
Subject: |
Re: How to build with Alire |
Date: |
Sat, 14 Oct 2023 13:11:46 +0200 |
Hi, thanks for the answers.
I'll probably try to get some Emacs Lisp function to set environment
variables + exec-path then, similar to Python's virtual environment.
Best.
Oleg
On Tue, Oct 10, 2023 at 11:36 PM Simon Wright <simon.j.wright@mac.com> wrote:
>
> I just realised, that’s very very Mac-specific! Sorry for not mentioning it
> earlier.
>
> On 10 Oct 2023, at 09:03, Simon Wright <simon.j.wright@mac.com> wrote:
>
> I run the attached shell script; if the argument is "emacs", it configures
> "alr edit" to run a new copy of emacs; otherwise, GNATStudio.
>
> Disadvantage: it opens emacs on the GPR, so you have to navigate to an Ada
> source before you can set the GPR as the one to use.
>
> #!/bin/sh
>
> case $1 in
> emacs)
> alr config --global --set editor.cmd 'open -n -a emacs ${GPR_FILE}'
> ;;
> *)
> alr config --global --set editor.cmd 'open -n -a gnatstudio --
> ${GPR_FILE}'
> ;;
> esac
>
>