[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17684: #22873 (multiple fake cursors); and, #17684 (crosshairs).
From: |
Keith David Bershatsky |
Subject: |
bug#17684: #22873 (multiple fake cursors); and, #17684 (crosshairs). |
Date: |
Sun, 11 Nov 2018 08:51:54 -0800 |
Proof concept patch version 015.001. Changes include, but are not limited to:
- Fixed mc-test. [When switching over from the move IT method to the dump
glyph matrix method, cursor_type inadvertently got hard-coded as a BAR_CURSOR
instead of respecting the user-defined cursor type/width for multiple fake
cursors.]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SETUP:
Step 1: git clone -b master git://git.sv.gnu.org/emacs.git
Step 2: In the new emacs folder, go back to an Emacs version from 07/07/2018:
git reset --hard 98463bed07ecc9057094928ffdc2321eaaf3ab52
[Going back in time to 07/07/2018 saves @lawlist a couple of hours by not having
to deal with unrelated recent changes to the master branch by the Emacs team.]
Step 3: From within the new emacs folder created in Step 1, apply the patch:
git apply /path/to/the/11_11_2018__08_30_42_690.diff
[There should not be any error messages at this point; i.e, you should be
returned to a new command prompt.]
Step 4: ./autogen.sh
Step 5: ./configure ... [your custom options]
Step 6: make
Step 7: make install
- To try out built-in fake cursors with Magnar Sveen's library
(multiple-cursors), install that package first. [If the multiple-cursors
package is installed, an eval-after-load "multiple-cursors-core" statement
within crosshairs.el will redefine a couple of functions and set up a few
keyboard shortcuts.] If the multiple-cursors package by Magnar Sveen is not
already installed, then there are two easy ways to install that package:
Type: M-x mc-install
OR, evaluate the following snippet:
(progn
(require 'package)
(add-to-list 'package-archives '("melpa" .
"http://melpa.milkbox.net/packages/") t)
(package-initialize)
(package-refresh-contents)
(package-install 'multiple-cursors))
- To try out the crosshairs feature, open a relatively simple buffer (e.g.,
just code or text) and type: M-x +-mode
The default setting is on an idle timer, so just move around or type
something to see how it works.
- To see an example of a variety of built-in cursor styles and widths, type:
M-x mc-test
11_11_2018__08_30_42_690.diff
Description: application/diff