Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anquegi opened this issue Jan 20, 2021 · 3 comments
Open

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

anquegi opened this issue Jan 20, 2021 · 3 comments

Comments

@anquegi
Copy link

anquegi commented Jan 20, 2021

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
Copy link
Owner

rejeep commented Jan 21, 2021

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

@anquegi
Copy link
Author

anquegi commented Jan 21, 2021

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
Copy link
Owner

rejeep commented Jan 25, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants