jordan4ibanez / Vmacs

My attempt to turn Emacs into VSCode
GNU General Public License v3.0
9 stars 0 forks source link

use-package not installed? #1

Open mmontone opened 10 months ago

mmontone commented 10 months ago

Hi. The installation didn't work for me because it complains use-package is not available. Everything works after I install use-package manually. FYI.

jordan4ibanez commented 10 months ago

Oh, very sorry. Let me take a look into this!

mmontone commented 10 months ago

I may be wrong, as Im loading the init.el manually because my emacs doesnt take the init.el when starting following the install instructions. I'm also using -q command line option for Emacs to ignore my .emacs init file.

El mar., 5 sep. 2023 20:49, jordan4ibanez @.***> escribió:

Oh, very sorry. Let me take a look into this!

— Reply to this email directly, view it on GitHub https://github.com/jordan4ibanez/Vmacs/issues/1#issuecomment-1707450815, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADKPDTGOOUK5NWOISMWVKTXY627HANCNFSM6AAAAAA4MNNZBY . You are receiving this because you authored the thread.Message ID: @.***>

jordan4ibanez commented 10 months ago

No no, I think you're absolutely right! This should be a self-containerized, essentially, distro for emacs I suppose. I found a nice fix. Dot files are handy.

Let me know how https://github.com/jordan4ibanez/Vmacs/commit/db589210c89e1156fd98353fa9320843066724da works out with your style of loading Vmacs.

mmontone commented 10 months ago

Works! Thanks

jordan4ibanez commented 10 months ago

Anytime

jordan4ibanez commented 10 months ago

From: olnw

use-package is included with Emacs since ver. 29.1 (which you should really be using). You might want to conditionally install it based on the Emacs version.

And you don't need a progn inside that unless form.

I am going to reopen this issue with a note so I do not forget to do this later

olnw commented 10 months ago

You could do something like the following. I don't think the .vmacs-fully-initialized file is really necessary.

(unless (package-installed-p 'use-package)
  (package-install 'use-package))
jordan4ibanez commented 10 months ago

You could do something like the following. I don't think the .vmacs-fully-initialized file is really necessary.

(unless (package-installed-p 'use-package)
  (package-install 'use-package))

Unfortunately, out of the box package-installed-p doesn't exist in emacs 27.1

olnw commented 10 months ago

Unfortunately, out of the box package-installed-p doesn't exist in emacs 27.1

It's been included since package.el was merged, which was in 2010 https://github.com/emacs-mirror/emacs/commit/44198b6ee97bcb0ac88a5cadd1bf9b62048d0156

package.el has been included since Emacs 24.