LoginSignup
3
0

More than 5 years have passed since last update.

.emacs とかがおかしくなった時…

Posted at

CUI 時代のアプリケーションを GUI で使う罠

mac とかで Emacs.app を使っていると、.emacs を弄っていておかしくした時に、起動時に

Warning (initialization): An error occurred while loading `/Users/hogemogeo/.emacs':

Symbol's value as variable is void: http://www.xsteve.at/prg/emacs/

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

とか怒られちゃう時がある。
上記の例では、 http://www.xsteve.at/prg/emacs/ っていうのがシンボル扱いになってるけど? って怒ってるんだけど、よくわからない怒られパターンも多々ある。

--debug-init で起動しろというけど、アイコンダブルクリックで起動してるし…

そんな時は、取り敢えず、M-x load-file.emacs を読み込むと、この辺がおかしいと教えてくれる時がある。
ダメなときは、Terminal.app で、

$ /Applications/Emacs.app/Contents/MacOS/Emacs -nw --debug-init

ってやれば、Terminal.app 内で起動するから、ココで何とかしよう。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0