How to make Emacs always open .c files in left windows and .h right?

I always open three windows when writing C code as follows:

       |
       |  2 
1      |_____
       |
       |  3
       |

Window 1 is used to write code, window 2 is used for cscope, and window 3 is used for quick reference in the header file.

When I click in the cscope window to display the source, I want Emacs to always display .c files in window 1, and .h files in window 3, is there any possible solution?

Thank you very much for your response.

+3
source share
1 answer
+3

Source: https://habr.com/ru/post/1713609/


All Articles