28
3
In my latest ubuntu box,
When I type for example
emacs ~/.bashrc
, Emacs will start but not open.bashrc
. This is true for any file I pass in. I've used Emacs for several years, and have never experienced this problem before.I added
(global-font-lock-mode 1);;
to my .emacs file, and Emacs does recognize it, for example."(C++/; Abbrev)"
, but it won't do syntax highlighting.
If you can solve any of these problems, it will be very appreciated. The following is my machine's configuration:
uname -a
Linux 2.6.35-28-generic-pae #49-Ubuntu SMP Tue Mar 1 14:58:06 UTC 2011 i686 GNU/Linux~/.emacs
(global-font-lock-mode 1);;
1
Better asked on http://askubuntu.com/
– Oded – 2011-03-26T21:22:11.7231What happens if you start emacs then use
C-x C-f
to open~/.bashrc
? Might give you a useful error message. – None – 2011-03-26T21:27:41.2001Does the
*Messages*
buffer contain anything useful? – MatthewD – 2011-03-27T02:35:39.0201hi thanks a lot, it seems it is caused by the directory ~/.emacs.d, emacs actually complains upon startup :"~/.emacs.d already exists". So I removed ~/.emacs.d, and now everything works! (I can open files through command line argument and syntax highlighting also works now). @Tom, previously I can start emacs, and then use C-x C-f to open .bashrc, but cannot open by > emacs ~/.bashrc – None – 2011-03-27T05:13:35.007