rejeep / evm

Emacs Version Manager
223 stars 34 forks source link

Use evm for manage versions installe with brew emacs-head #139

Open anquegi opened 3 years ago

anquegi commented 3 years ago

I use OSX at work, and I use homebrew to manage my packes exist one emacs package emacs-head It works pretty weel for intalling emacs on OSX an I can install different emacs.

It is a ruby receipe, and get emacs installed in differente folders:

~ via ⬢ v12.4.0
❯ ls /usr/local/Cellar/emacs
emacs/          emacs-head@27/  emacs-head@28/

And then symlink it to /usr/local/bin to use. Can I use this installed emacs with evm to select versions in my shells?

Because in the readme I only see that I need to write a receipe. can I Use the receipes in the brew repo emacs-head. This are using with cocoa that I saw here is not supported

rejeep commented 3 years ago

You can only select versions using EVM that has a recipe. You could use the Git snapshot versions instead of emacs-head perhaps?

anquegi commented 3 years ago

Thanks for answering, Well, I allready have several versions of emacs installed, so I would know if I can use evm to point this allready installed versions of emacs using homebrew and emacs-head which ejecutables are here:

❯ /usr/local/Cellar/emacs-head@28/28.0.50_1/bin/emacs --version
GNU Emacs 28.0.50
Copyright (C) 2021 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

~ via ⬢ v12.4.0
❯ /usr/local/Cellar/emacs-head@27/HEAD-82c228a_1/bin/emacs --version
GNU Emacs 27.1.90
Copyright (C) 2021 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

~ via ⬢ v12.4.0
❯ /usr/local/Cellar/emacs/27.1/bin/emacs --version
GNU Emacs 27.1
Copyright (C) 2020 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

And where installed with a lot of modules enabled i.e.:

~ via ⬢ v12.4.0
❯ brew install emacs-head --HEAD --with-cocoa --with-dbus --with-mailutils --with-pdumper --with-xwidgets --with-crash-debug --with-ctags --with-imagemagick

~ via ⬢ v12.4.0
❯ brew install emacs-head@28 --with-cocoa --with-dbus --with-mailutils --with-pdumper --with-xwidgets --with-crash-debug --with-ctags --with-imagemagick --with-native-comp --with-native-full-aot

. Because this distribution has --cocoa and other options active that could be used and maybe I build install other distributions for OSX.

I see that you can list the binary path to emacs executable. so maybe is some configuration file that I can edit and point to theese executables

So I also asked if another option could be write my custom receipe for evm following this receipes from homebrew

rejeep commented 3 years ago

It was such a long time ago I wrote this so I don't remember, but take a look at https://github.com/rejeep/evm/blob/master/lib/evm/package.rb. It seems there is a config Evm.config[:path], maybe that could work? Otherwise, I don't think it should be difficult to update that file to support it.