Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the default bindings of xcscope #18

Closed
c02y opened this issue Jul 4, 2018 · 2 comments
Closed

How to change the default bindings of xcscope #18

c02y opened this issue Jul 4, 2018 · 2 comments

Comments

@c02y
Copy link

c02y commented Jul 4, 2018

There are two default bindings in xcscope.el:

C-c s g -- cscope-find-global-definition
C-c s G -- cscope-find-global-definition-no-prompting

But most of time I just use C-c s G which is cscope-find-global-definition-no-prompting, since G is Shift-g, so how can switch the bindings to

C-c s g -- cscope-find-global-definition-no-prompting
C-c s G -- cscope-find-global-definition

========================

And I notice that a lot of cscope-* functions will prompt, but most of time I just call cscope functions for the current word where my point is, so I come up two solutions:

1. define a variable that I can choose to prompt or not prompt for all `cscope-*` functions
2. give every cscope function a prefix such as `C-u`, with `C-u`, all the functions will prompt, otherwise all of them will not prompt.

I think the 2nd solution is better.

@dkogan
Copy link
Owner

dkogan commented Jul 9, 2018

Hi.

  1. That's not a good idea. Many people use this tool, and changing the defaults is going to all-of-a-sudden break their usages.

  2. Can you put together a prototype?

@dkogan
Copy link
Owner

dkogan commented Oct 25, 2020

Closing for lack of activity.

@dkogan dkogan closed this as completed Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants