3

There are several things wrong with the code: You need #', (or just ',) in front of func. Inside a backquote expression, just func would result in the literal symbol func, not its value as a variable. Use comma (, to evaluate it. But then quote that evaluated result. You need to use kbd, or else you are trying to bind the key sequence C-x SPC k. You need ...


2

For me the C-down-mouse-1 solution worked, but still used the point from before the click. Thus I use now: (define-key c-mode-base-map [C-down-mouse-1] 'mouse-drag-region) (define-key c-mode-base-map [C-mouse-1] 'rtags-find-symbol-at-point) so now, first the point gets set, then we find the correct symbol.


1

Ok, I was led astray by the C-h k output (e.g. ...(translated from <kp-5>)...) which I took to mean that the syntax <kp-5> was OK for KEY in global-set-key. When I did (global-set-key [kp-5] 'goto-line) instead it works as I expect. Both forms had worked on the system I came from. I found this by going though my .emacs and testing the various ...


1

tl;dr @drew is right, you have a conflict. Use C-backspace in Emacs to delete the word to the left of the point. At your shell command like use C-w to do the same. Long answer @Drew is correct, you have a conflict between iTerm and Emacs. Unfortunately there's not much you can do about that, so let's focus on what you want to do, "delete word". As you've ...


1

I'm not familiar with iTerm. But it sounds like it is capturing the keys you specified, which you want, in general. You just don't want it to do that when Emacs has the input focus. You'll probably need to check the iTerm doc to see if there is some way to exclude certain applications (e.g. Emacs) from iTerm's key capturing.


Only top voted, non community-wiki answers of a minimum length are eligible