[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/symbol-overlay f6d065eb3a 006/152: checkdoc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/symbol-overlay f6d065eb3a 006/152: checkdoc |
Date: |
Thu, 7 Jul 2022 12:04:06 -0400 (EDT) |
branch: elpa/symbol-overlay
commit f6d065eb3adee391fa5b1376e3aeaa649136865f
Author: wolray <290061869@qq.com>
Commit: wolray <290061869@qq.com>
checkdoc
---
symbol-overlay.el | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/symbol-overlay.el b/symbol-overlay.el
index 0122e6994b..3b9605efda 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -1,10 +1,19 @@
-;;; symbol-overlay.el --- Putting overlays on symbol with a powerful keymap.
+;;; symbol-overlay.el --- Putting overlays on symbol with a powerful keymap
+
+;; Copyright (C) 2017 wolray
+
+;; Author: wolray <wolray@foxmail.com>
+;; URL: https://github.com/wolray/symbol-overlay/
+;; Version: 2.0
+;; Keywords: overlay, highlight
+
+;;; Commentary:
;; Highlighting symbol while enabling you to jump from one occurrence to
another
;; or directly to the definition of that symbol in the buffer, with A SINGLE
;; KEYSTROKE. It was originally inspired by the package `highlight-symbol'. The
;; difference is that every symbol in `symbol-overlay' is highlighted by the
-;; emacs built-in function `overlay-put' rather than the `font-lock' mechanism
+;; Emacs built-in function `overlay-put' rather than the `font-lock' mechanism
;; used in `highlight-symbol'.
;;
;; Advantages
@@ -43,7 +52,7 @@
(define-key map (kbd "k") 'so-remove-all)
(define-key map (kbd "q") 'so-query-replace)
map)
- "keymap automatically activated inside overlays.
+ "Keymap automatically activated inside overlays.
You can re-bind the commands to any keys you prefer.")
(defvar so-keywords-alist)
@@ -57,19 +66,19 @@ You can re-bind the commands to any keys you prefer.")
"salmon"
"spring green"
"turquoise")
- "Colors used for overlays' background")
+ "Colors used for overlays' background.")
(defvar so-def-function
'(lambda (symbol) (concat "(?def[a-z-]* " symbol))
- "It must be an one-argument lambda function that returns a regexp")
+ "It must be an one-argument lambda function that returns a regexp.")
(make-variable-buffer-local 'so-def-function)
(defun so-get-s (&optional str)
- "Get the symbol at point, if none, return nil. If STR is non-nil,
regexp-quote
-STR rather than the symbol."
+ "Get the symbol at point, if none, return nil. If STR is non-nil,
+`regexp-quote' STR rather than the symbol."
(let ((symbol (or str (thing-at-point 'symbol))))
(if symbol (concat "\\_<" (regexp-quote symbol) "\\_>")
- (user-error "No symbol at point."))))
+ (user-error "No symbol at point"))))
(defun so-put-s (symbol)
"Put overlay to all occurrences of SYMBOL in the buffer, using a random
@@ -99,7 +108,7 @@ background color from `so-colors'."
color))
(defun so-count-s (symbol &optional color-msg)
- "Show the number of occurrences of SYMBOL, if COLOR-MSG is non-nil, add the
+ "Show the number of occurrences of SYMBOL. If COLOR-MSG is non-nil, add the
color used by current overlay in brackets."
(let ((case-fold-search nil)
(keyword (assoc symbol so-keywords-alist))
- [nongnu] branch elpa/symbol-overlay created (now c439b73a5f), ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay a3f708ce3f 015/152: add a version, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 794ae33cc1 019/152: v2.2 Make some optimizations. Add a mark variable., ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 9fc0cfaf36 043/152: fix doc, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 0ec27ba84b 057/152: fix, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay f6d065eb3a 006/152: checkdoc,
ELPA Syncer <=
- [nongnu] elpa/symbol-overlay b34d0a37ab 012/152: Fix package, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 148652222c 025/152: fix some documentation text., ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 674b78983c 027/152: add an image in readme, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 03e94a9a64 028/152: fix the image, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 9f5d3c10fa 033/152: fix readme, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 1d971f69fb 037/152: (v3.3) add isearch, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay fd0bd0f23f 042/152: (v3.4) add symbol-overlay-mode, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 69dd2bdaac 048/152: fix doc, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay 5fd2c80610 036/152: fix conflicts with replace-match, ELPA Syncer, 2022/07/07
- [nongnu] elpa/symbol-overlay f21c2447b7 046/152: better code, ELPA Syncer, 2022/07/07