My dotemacsfile looks like the following.
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize) ;load and activate packages, including auto-complete
(ac-config-default)
(global-auto-complete-mode t)
But when I run the above in a scratch buffer using M-x eval buffer
, I get symbol's function definition is void : ac-config-default
.
(The error is different from the error I get when I do emacs --init-debug test.R
where the init file is in my home directory. I won't show that error in order to not confuse things.)