Here is an alternative binding, whereby the middle mouse button selects (but
does not cut) the expression under the mouse. Clicking middle on a left or
right paren will select to the matching one. Note that you can use
define-key
or global-set-key
.
(defun Mouse-Set-Point-and-Select (event) "Sets the point at the mouse location, then marks following form" (interactive "@e") (mouse-set-point event) (mark-sexp 1) ) (define-key global-map 'button2 'Mouse-Set-Point-and-Select)
(Editor's Note -- there is a problem with texinfo/text/html conversion, so the double at-sign should only be a single, above. I'll fix it one of these days -- AJR)
Use, for instance, [(meta button1)]
. For example, here is a
common setting for Common Lisp programmers who use the bundled ilisp
package, whereby meta-button1 on a function name will find the file
where the function name was defined, and put you at that location in
the source file.
[Inside a function that gets called by the lisp-mode-hook and ilisp-mode-hook]
(local-set-key [(meta button1)] 'edit-definitions-lisp)
Use the middle mouse button.
The following code will actually replace the default popup on button3:
(defun cw-build-buffers () "Popup buffer menu." (interactive "@") (run-hooks 'activate-menubar-hook) (popup-menu (car (find-menu-item current-menubar '("Buffers"))))) (define-key global-map [(button3)] 'cw-build-buffers)
(Editor's Note -- there is a problem with texinfo/text/html conversion, so the double at-sign should only be a single, above. I'll fix it one of these days -- AJR)
We don't know. It's a bug. There does seem to be a work-around, however. Try running xclipboard first. It appears to fix the problem even if you exit it. (This should be mostly fixed in 19.13, but we haven't yet verified that).
Try adding the following to your `.emacs':
(define-key global-map 'button2 'x-insert-selection)
This comes from the `sample.emacs' file in `etc/', which has lots of goodies.
Just select the region normally, then use the rectangle commands (e.g.
kill-rectangle
) on it. The region does not highlight as a
rectangle, but the commands work just fine.
To actually sweep out rectangular regions with the mouse do the following:
(setq mouse-track-rectangle-p t)
It actually doesn't. It leaves the region visible for a second so that you can see what area is being yanked. If you start working, though, it will immediately complete its operation. In other words, it will only delay for a second if you let it.