3

I always open three windows when writing C code like this:

       |
       |  2 
1      |_____
       |
       |  3
       |

Window 1 is used for code writing, window 2 is used for cscope, and window 3 is used for header file quick reference.

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

Many thanks for your reply.

ZelluX
  • 69,107
  • 19
  • 71
  • 104

1 Answers1

3

Take a look at the answer to a similar question. The key is to use the variable: special-display-regexps. It's nearly a drop-in solution, only you choose the window based on the extension (as opposed to not choosing a window).

Community
  • 1
  • 1
Trey Jackson
  • 73,529
  • 11
  • 197
  • 229