views:

54

answers:

1

I am using emacs 23.2 on Ubuntu 10.04 & Windows XP along with cedet extention. Cedet seems to work fine but I could not select the file using mouse. Rather I need to use the Key press to select the file from cedet (placed at left side)..

how to do file selection using mouse with emacs cedet? Any clue shall be appreciated...

+2  A: 

CEDET is a collection of features, so I'm not sure specifically which one you're talking about, but are you left-clicking or middle-clicking the mouse? The middle mouse button is more commonly bound to an 'open file' command in Emacs modes.

In any case, you can always use C-h m to list the help for the active major mode in a buffer, along with any minor modes. Key bindings are frequently listed in this help text.

Finally, as you know a working key binding, you can trivially find out what else is bound to the same command: C-h k <working binding> will tell you which command that key is bound to, as well as any other bindings for the same command. If there are no other bindings that are to your liking, then you can always define your own.

phils
@phils, I didn't aware that middle button opens the file. Is it possible to left double-click to open the file
Gopalakrishnan Subramani
Yes, in general you can use `(global-set-key (kbd "<double-mouse-1>") 'name-of-command)` to bind double-left-click. You'll be wanting to do this only for the specific mode you're interested in, though, so you'd probably actually want to use `local-set-key` in a hook function for that mode.
phils
Perhaps something like `(add-hook 'whichever-mode-hook (function (lambda () "Use double-left-click to open files." (local-set-key (kbd "<double-mouse-1>") 'name-of-open-file-command))))`
phils