13
submitted 1 month ago by NanoooK@sh.itjust.works to c/emacs@lemmy.ml
top 6 comments
sorted by: hot top controversial new old
[-] bunitor@lemmy.eco.br 2 points 1 month ago

Use ~/.emacs.d/init.el for your configurations. If there is an ~/.emacs file on your system, make sure to delete it

why? does init.el have any advantage over .emacs?

personally, i like using .emacs bc then, if anything goes wrong, i can just nuke .emacs.d and let my .emacs set everything up from scratch

[-] davel@lemmy.ml 2 points 1 month ago* (last edited 1 month ago)

why? does init.el have any advantage over .emacs?

Presumably because of the very next point, #2: “Put all auto-generated configurations in a separate file.” If you’re going to use more than one config file, then that means you need to go with the .emacs.d directory route.

[-] bunitor@lemmy.eco.br 1 points 1 month ago

do you? you can set a different custom file from .emacs just fine and i've seen it done before. unless i'm missing something, i believe that's not it

[-] davel@lemmy.ml 2 points 1 month ago* (last edited 1 month ago)

I’m far from an Emacs expert. If you say so, I believe you.

One reason I do it is because I made ~/.emacs.d a git repo.

[-] bunitor@lemmy.eco.br 1 points 1 month ago

I made ~/.emacs.d a git repo.

ooh, interesting. though i'm a bit squeamish about mixing tracked content and "build artifacts" (in this case, installed packages).

[-] davel@lemmy.ml 3 points 1 month ago
$ cat ~/.emacs.d/.gitignore 
/auto-save-list/
/elpa/
/init.el~
/transient
/org-roam.db
/.org-id-locations
$
this post was submitted on 30 Nov 2024
13 points (100.0% liked)

Emacs

2274 readers
1 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS