Emacs/CEDET – moving semantic.cache files out of the way

If you’re using the CEDET tools which I recently mentioned, then you might come to be annoyed with the semantic.cache files that start littering all of your directories. Luckily there’s a solution:

(setq semanticdb-default-save-directory “~/tmp/semantic.cache”)

from http://blog.ox.cx/2006/04/25/getting-rid-of-semanticcaches/

Learning GNU Emacs, Third Edition

2 thoughts on “Emacs/CEDET – moving semantic.cache files out of the way

  1. I found that after making the change you suggest, emacs would not exit
    at all.
    I set the path to “/tmp/semantic.cache”
    it would fail because it would not find the path “/tmp/semantic.cache/!SOME!FILE!I!CREATE.semantic.cache”

    I added this to my .emacs and then emacs would exit cleanly. ‘(semanticdb-persistent-path nil)

Leave a Reply

Your email address will not be published. Required fields are marked *