After a long debugging of my init.el file, it looks like the first line of the following elisp-code, i.e (custom-set-variables
is provoking an 'End of file during parsing' error) which I absolutely don't understand. If I comment this line, all is fine. I did not even enter this code myself, as it has been automatically added in init.el from the customize
menu.
(custom-set-variables
'(global-hl-line-mode t)
'(ido-mode (quote buffer) nil (ido))
'(menu-bar-mode nil)
(when (display-graphic-p)
(tool-bar-mode -1)
(scroll-bar-mode -1))
Here is the complete error message:
Warning (initialization): An error occurred while loading `/Users/me/.emacs.d/init.el':
End of file during parsing: /Users/me/.emacs.d/init.el
Any help would be appreciated ! Thanks
M-x check-parens
to jump to the offending section. If the file is short, or you are looking at a short section of code, then there are methods to highlight matching parentheses to visually see where a parentheses is misplaced or missing. Here is a link to my own variation ofhighlight-parentheses-mode
: stackoverflow.com/a/23998965/2112489custom-set-variables
in your own Elisp code. This is meant to be auto-generated only. Don't copy&paste it. Look for equivalent code usingsetq
or something like that.