I can't find the init.el file in the normal paths that is supposed to be, and I already try to search inside the emacs app and with the terminal. Apart from that I can write and save files. I made a search to see if there is any init.el file with the basic stuff that already comes with the emacs, but I couldn't find. I need the init.el file because I need to add a meta key for the hash in mac with uk keyboard. I already know how to make a init.el file, but I go to the internet to get the source code, but until now it was not possible to add the meta key to add the hash. If possible could you give me some link to get the init.el file that already comes with emacs. If necessary I can take screenshots.

Best regards

  • 1
    Possible duplicate of Where Is The .emacs file in Windows 8.1?
    – Drew
    Oct 29, 2016 at 22:36
  • 1
    You need to (1) find out how to use StackExchange sites - how to ask a question, what's the difference between an answer and a question, etc. (2) ask Emacs such questions: (a) M-x apropos init-file, (b) C-h r, then i init file.
    – Drew
    Oct 29, 2016 at 22:39

2 Answers 2


Emacs doesn't come with a user init file. You write your own. If there's no user init file, Emacs behaves in the same way as if there's an empty init file, so there's no need for a default init file.

There are several possible locations for the init file. If you don't have one already, you can use whichever you want.

To make sure that you don't have an init file yet, check the value of the variable user-init-file (C-h v user-init-file RET). If this points to an existing file, edit that file. If it doesn't, edit that file or any of the other possible locations.


You need to create the file if it doesn't exist.

If you want a decent start, spacemacs is one possibility.

  • 1
    I wouldn't call spacemacs a “decent start”. Just someone's preference. Oct 30, 2016 at 15:25
  • @Gilles Changed the wording.
    – xuhdev
    Oct 30, 2016 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.