I am using xcode with emacs. But everytime I start emacs, I need to
go to menu ‘CScope’ -> Cscope->database -> set init Directory
and it pick the root directory of my source.
And then I click ‘CScope’ -> Cscope->database -> set init Directory->create list and index’
Is there anyway I can configure that in .emacs so that I don’t need to do that every time i start emacs?
Thank you.
If you’re using this cscope mode it looks like you could do
M-x customize-variable RET cscope-last-directory RET, set the variable to your favorite directory, and save the value. If not, you’ll have to be more specific about how you are using cscope with Emacs.