this post was submitted on 23 Nov 2023
2 points (100.0% liked)

Emacs

323 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 2 years ago
MODERATORS
 

In my config, I have the followings line:

(nerd-icons-install-fonts)

How do I prevent this from happening multiple times? I just need it, when it is not installed.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago

just remove it and call the command once whenever you're setting up a new machine

[–] [email protected] 2 points 1 year ago

You can install a nerd font in your OS and just use that for emacs

[–] [email protected] 1 points 1 year ago (1 children)

These types of install functions I add to a package-upgrade-all hook. Still redundant but only when you run package-upgrade-all which shouldn't be often

[–] [email protected] 1 points 1 year ago

Can you share this code, please. Would it run, when you install emacs fresh?