How to toggle between .cpp and .hpp that are not in the same directory?

Posted by dehmann on Super User See other posts from Super User or by dehmann
Published on 2011-03-10T00:55:21Z Indexed on 2011/03/11 0:12 UTC
Read the original article Hit count: 228

Filed under:
|

Is there an Emacs function that toggles between .cpp and .hpp files that are not in the same directories?

I know there is toggle-source.el, but it apparently does not handle the case where .cpp and .hpp are not in different directories. But my directory structure is like this:

project1/src/foo.cpp
project1/include/foo.hpp
project2/src/bar.cpp
project2/include/bar.hpp

It shouldn't be hard to toggle between src/foo.cpp and include/foo.hpp but I don't speak Lisp ... :`(

© Super User or respective owner

Related posts about emacs

Related posts about lisp