[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hl-block-mode 82f42045c1 31/64: Enable lexical binding
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hl-block-mode 82f42045c1 31/64: Enable lexical binding |
Date: |
Thu, 7 Jul 2022 12:00:06 -0400 (EDT) |
branch: elpa/hl-block-mode
commit 82f42045c11ad8c6f13db3a32dcda970a378d164
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Enable lexical binding
---
hl-block-mode.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/hl-block-mode.el b/hl-block-mode.el
index 508496997b..09b9636b4d 100644
--- a/hl-block-mode.el
+++ b/hl-block-mode.el
@@ -1,4 +1,4 @@
-;;; hl-block-mode.el --- highlighting nested blocks
+;;; hl-block-mode.el --- highlighting nested blocks -*- lexical-binding: t -*-
;; Copyright (C) 2019 Campbell Barton
@@ -129,8 +129,8 @@ Inverse of `color-values'."
(bg-color-blend
(apply 'hl-block--color-values-as-string
(if do-highlight
- (cl-mapcar '(lambda (a b) (+ a (* i-tint b))) bg-color
bg-color-tint)
- (cl-mapcar '(lambda (a b) (- a (* i-tint b))) bg-color
bg-color-tint)))))
+ (cl-mapcar `(lambda (a b) (+ a (* ,i-tint b))) bg-color
bg-color-tint)
+ (cl-mapcar `(lambda (a b) (- a (* ,i-tint b))) bg-color
bg-color-tint)))))
(overlay-put elem-overlay-start 'face `(:background
,bg-color-blend :extend t))
(overlay-put elem-overlay-end 'face `(:background
,bg-color-blend :extend t))
(add-to-list 'hl-block-overlay elem-overlay-start)
@@ -181,7 +181,11 @@ This can happen when switching buffers."
(hl-block--overlay-refresh)))
;;;###autoload
-(define-globalized-minor-mode global-hl-block-mode hl-block-mode
hl-block-mode-turn-on)
+(define-globalized-minor-mode
+ global-hl-block-mode
+ hl-block-mode
+ hl-block-mode-turn-on
+ :group 'hl-block-mode)
;;;###autoload
(defun hl-block-mode-turn-on ()
- [nongnu] elpa/hl-block-mode 6310fc8563 05/64: Create LICENSE, (continued)
- [nongnu] elpa/hl-block-mode 6310fc8563 05/64: Create LICENSE, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode f957c01cf8 06/64: Docs: add missing sections to header, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 054dc21949 08/64: Enforce use of spaces for indentation, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode bb35a6c56b 47/64: Add hl-block-single-level & hl-block-style, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 54ab1d6aba 60/64: Fix bracket display highlighting a character next to (point), ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 395c7315b7 11/64: Add option to match different bracket types, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode ed4a599ead 38/64: Cleanup: quiet checkdoc & package lint warnings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 497b0ac639 48/64: Cleanup: re-order custom settings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 859d3cac49 51/64: readme: update example, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode da2870d1d7 24/64: Update readme.rst, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 82f42045c1 31/64: Enable lexical binding,
ELPA Syncer <=
- [nongnu] elpa/hl-block-mode dc5b0153bb 35/64: Cleanup: byte-code compilation warnings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 4e28df960d 40/64: Remove local variables when disabling the mode, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode d47c372b06 03/64: Update readme.rst, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode f763fff94e 09/64: Follow lisp and emacs-lisp conventions, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode b98c83d8cb 14/64: Add global-hl-block-mode, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 326e026b66 13/64: Use character literal for '{', ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 9f39593c4f 19/64: make hl-bock-mode lighter customizable, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 00914d2938 22/64: Reduce default delay to 200ms, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 74b5a89360 23/64: FIx typo, ELPA Syncer, 2022/07/07
- [nongnu] elpa/hl-block-mode 0f1abe46d5 27/64: Apply auto-format, ELPA Syncer, 2022/07/07