You can reload the .emacs file with Mx load-file ~ / .emacs . There are other ways to do this, check out the question How do I upload changes to my .emacs without restarting Emacs? .
If you think that the problem is with your .emacs file, try opening it with the -q option:
emacs -q somefile
If this works as you expected, you probably have a bug in your .emacs, and a good way to debug your .emacs is to use the --debug-init option:
emacs --debug-init
What Emacs will tell is to provide a stack trace of any error it encounters while loading your .emacs, something like:
Debugger entered--Lisp error: (wrong-type-argument symbolp (car n)) (setq (car n) 3) (let ((n ...)) (setq (car n) 3)) eval-buffer(#<buffer *load*<2>> nil "/home/tjackson/.emacs.tjackson.el" nil t) ; Reading at buffer position 161460 load-with-code-conversion("/home/tjackson/.emacs.tjackson.el" "/home/tjackson/.emacs.tjackson.el" nil nil) load("/home/tjackson/.emacs.tjackson.el") (let ((debug-on-error t)) (load user-init-file)) (if init-file-debug (let (...) (load user-init-file)) (error (format "Problems while loading the file %s: %s" user-init-file ...))) (condition-case err (load user-init-file) (error (if init-file-debug ... ...))) (if (file-exists-p user-init-file) (condition-case err (load user-init-file) (error ...))) eval-buffer(#<buffer *load*> nil "/home/tjackson/.emacs" nil t) ; Reading at buffer position 12150 load-with-code-conversion("/home/tjackson/.emacs" "/home/tjackson/.emacs" tt) load("~/.emacs" tt)
And this generally may indicate what may be wrong. In my case above, I am using setq incorrectly and it looks like inside the let statement, which is inside the /home/tjackson/.emacs.tjackson.el file. A quick search in this file leads me to an error, and I can fix it.
Trey jackson
source share