There's a huge literature on the topic, but, nevertheless, I cannot get this done. My ultimate goal is to work with fstar on Microsoft Windows.
C-x C-f
resolves ~
as C:/Users/myname
which is in line with my HOME
environment variable in the Environmental variables Windows section.
(expand-file-name user-emacs-directory)
, as described here yields, C:/Users/myname/.emacs.d/
In C:/Users/myname/.emacs.d/
I have placed .emacs.el
and init.el
with the suggested script:
(require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize)
However M-x
returns undefined, no matter if I start Emacs with or without the -q
flag (see here). My "Messages" buffer is empty".