[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/symbol-overlay 188df4744b 007/152: after auot-insert
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/symbol-overlay 188df4744b 007/152: after auot-insert |
Date: |
Thu, 7 Jul 2022 12:04:06 -0400 (EDT) |
branch: elpa/symbol-overlay
commit 188df4744b525ef74c53d56eaa2f9583f1e372e6
Author: wolray <290061869@qq.com>
Commit: wolray <290061869@qq.com>
after auot-insert
---
readme.md | 4 ++--
symbol-overlay.el | 22 +++++++++++++++++-----
2 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/readme.md b/readme.md
index 4613ede85e..9c69129ecd 100644
--- a/readme.md
+++ b/readme.md
@@ -24,12 +24,12 @@ A keymap `so-overlay-map` is already defined in the package:
"o" -> `so-jump-next` : Jump to the next location of symbol at point.
+"k" -> `so-remove-all` : Delete all highlighted symbols in the buffer.
+
"d" -> `so-jump-to-def` : Jump to the definition of symbol at point.
"q" -> `so-query-replace` : Command for query-replacing symbol at point.
-"k" -> `so-remove-all` : Delete all highlighted symbols in the buffer.
-
You can customize the keymap by writing
(define-key so-overlay-map (kbd "your-prefer-key") 'any-command)
diff --git a/symbol-overlay.el b/symbol-overlay.el
index 3b9605efda..3d4ca4dd6e 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -4,8 +4,20 @@
;; Author: wolray <wolray@foxmail.com>
;; URL: https://github.com/wolray/symbol-overlay/
-;; Version: 2.0
-;; Keywords: overlay, highlight
+;; Keywords: faces, matching
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
@@ -15,7 +27,7 @@
;; difference is that every symbol in `symbol-overlay' is highlighted by the
;; Emacs built-in function `overlay-put' rather than the `font-lock' mechanism
;; used in `highlight-symbol'.
-;;
+
;; Advantages
;; 1. In `symbol-overlay', `overlay-put' is much faster than the traditional
;; highligting method `font-lock-fontify-buffer', especially in a large buffer
@@ -32,7 +44,7 @@
;; alist as well as the length of it, the number of occurrences can be
;; immediately obtained. While in `highlight-symbol', this would call the
;; function `how-many' twice, causing extra costs.
-;;
+
;; Usage
;; To use `symbol-overlay' in your Emacs, you need only to bind one key:
;; (require 'symbol-overlay)
@@ -48,8 +60,8 @@
(define-key map (kbd "i") 'so-put)
(define-key map (kbd "u") 'so-jump-prev)
(define-key map (kbd "o") 'so-jump-next)
- (define-key map (kbd "d") 'so-jump-to-def)
(define-key map (kbd "k") 'so-remove-all)
+ (define-key map (kbd "d") 'so-jump-to-def)
(define-key map (kbd "q") 'so-query-replace)
map)
"Keymap automatically activated inside overlays.
- [nongnu] elpa/symbol-overlay 3fd1607725 022/152: (v2.5) a totally new architecture, (continued)
- [nongnu] elpa/symbol-overlay 3fd1607725 022/152: (v2.5) a totally new architecture, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 368af27599 029/152: fix the image, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay f4fac7d541 030/152: fix the image, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay fdb432babd 034/152: (v3.1) add narrow-function, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 08a6f3d732 035/152: (v3.2) better way to count and filter overlays, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay e288067203 039/152: fix documentation and code style, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 191d07ec35 001/152: (init 1.0), ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 3bbbd22852 002/152: (so-overlay-map) (major-version), ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 8330423db6 005/152: add readme.md, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 331b14542c 004/152: rename so-keywords to so-keywords-alist, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 188df4744b 007/152: after auot-insert,
ELPA Syncer <=
- [nongnu] elpa/symbol-overlay 4da9d67578 008/152: edit the summary, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay e31bbd140a 011/152: Fix some typos, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 8b4e26db1c 014/152: Fix the prefix errors, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 4cf1d3c0d2 024/152: better auto-refresh, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 4a297843fd 016/152: v2.1, add 3 commands for switching and renaming symbols, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 06c5a46ef7 017/152: fix some typos, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 3d1811ca31 021/152: (v2.4) a new auto-refresh, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay f68b908cbb 026/152: fix errors in symbol-replacing, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 2650738135 031/152: a new image, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 389cc1519a 040/152: fix missed minibufferp check, ELPA Syncer, 2022/07/07