I am using chocolatey package manager on windows to manage my emacs installation. However, I don't know where to place my .emacs file.
Your .emacs file will be located in your home directory. There's a list of ways Emacs can determine what that directory is. In order, they are:
The easiest way to find it, if you don't want to manually set one of those values, is to use the command C-x C-f ~/.emacs
from within Emacs. This will load the .emacs file in the correct location. Alternatively, you can use ~/.emacs.d/init.el
, if you want to keep every Emacs related file in your home directory inside a single folder.