[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/macrostep 83b2a0a 015/110: Tweak visible highlight
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/macrostep 83b2a0a 015/110: Tweak visible highlight |
Date: |
Sat, 7 Aug 2021 09:17:53 -0400 (EDT) |
branch: elpa/macrostep
commit 83b2a0a8bf991459d5623d563d4f19d05141a79d
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Tweak visible highlight
- make the background face (hopefully) work well with both light and dark
themes
- tweak gensym faces to work better with background face
- use `equal' instead of `=' to handle no newline at end of buffer
---
macrostep.el | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/macrostep.el b/macrostep.el
index 4cd417b..6cae0ec 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -200,42 +200,43 @@
:link '(url-link :tag "web page" "https://github.com/joddie/macrostep"))
(defface macrostep-gensym-1
- '((((min-colors 16581375)) :background "#b0c4de")
+ '((((min-colors 16581375)) :foreground "#8080c0" :box t :bold t)
(((min-colors 8)) :background "cyan")
(t :inverse-video t))
"Face for gensyms created in the first level of macro expansion."
:group 'macrostep)
(defface macrostep-gensym-2
- '((((min-colors 16581375)) :background "#8fbc8f")
+ '((((min-colors 16581375)) :foreground "#8fbc8f" :box t :bold t)
(((min-colors 8)) :background "#00cd00")
(t :inverse-video t))
"Face for gensyms created in the second level of macro expansion."
:group 'macrostep)
(defface macrostep-gensym-3
- '((((min-colors 16581375)) :background "#daa520")
+ '((((min-colors 16581375)) :foreground "#daa520" :box t :bold t)
(((min-colors 8)) :background "yellow")
(t :inverse-video t))
"Face for gensyms created in the third level of macro expansion."
:group 'macrostep)
(defface macrostep-gensym-4
- '((((min-colors 16581375)) :background "#cd5c5c")
+ '((((min-colors 16581375)) :foreground "#cd5c5c" :box t :bold t)
(((min-colors 8)) :background "red")
(t :inverse-video t))
"Face for gensyms created in the fourth level of macro expansion."
:group 'macrostep)
(defface macrostep-gensym-5
- '((((min-colors 16581375)) :background "#da70d6")
+ '((((min-colors 16581375)) :foreground "#da70d6" :box t :bold t)
(((min-colors 8)) :background "magenta")
(t :inverse-video t))
"Face for gensyms created in the fifth level of macro expansion."
:group 'macrostep)
(defface macrostep-expansion-highlight-face
- '((t :background "#eee8d5"))
+ '((((min-colors 16581375) (background light)) :background "#eee8d5")
+ (((min-colors 16581375) (background dark)) :background "#222222"))
"Face for macro-expansion highlight."
:group 'macrostep)
@@ -347,9 +348,9 @@ buffer and expand the next macro form found, if any."
(make-overlay (point)
(scan-sexps (point) 1))))
;; move overlay over newline to make it prettier
- (when (= (char-after (overlay-end new-ol)) ?\n)
- (move-overlay new-ol
- (overlay-start new-ol) (+ (overlay-end new-ol) 1)))
+ (when (equal (char-after (overlay-end new-ol)) ?\n)
+ (move-overlay new-ol
+ (overlay-start new-ol) (+ (overlay-end new-ol) 1)))
(overlay-put new-ol 'face 'macrostep-expansion-highlight-face)
(overlay-put new-ol 'evaporate t)
(overlay-put new-ol 'priority priority)
- [nongnu] elpa/macrostep a8e730e 089/110: Improve Makefile, (continued)
- [nongnu] elpa/macrostep a8e730e 089/110: Improve Makefile, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 2473a6f 094/110: Pass START and END args to sexp-at-point-function, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 03d4d7b 096/110: Add basic C macro expansion via cmacexp.el, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 9a6b04a 100/110: Restore Emacs 23 compatibility, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep d48e52b 101/110: Add tests for compiler-macro expansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep aa59895 103/110: Add .travis.yml, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 7b2c1f3 108/110: Load all autoloaded macros, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 4d75baf 003/110: Bump version number, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 8a85acc 022/110: Refactor backquote handling and text properties., ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 2d216ba 109/110: Merge pull request #19 from fice-t/autoload, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 83b2a0a 015/110: Tweak visible highlight,
ELPA Syncer <=
- [nongnu] elpa/macrostep 3f815fb 031/110: Test for normal defmacro expansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 9d2c58c 040/110: Add option to expand in a separate buffer, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 3f965b0 048/110: Use new `macrostep-macro-start` text property, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep ff3888f 065/110: Use a form-tracking stream rather than gensym substitution, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0fd292c 006/110: Better README, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0db08ec 007/110: add Url: header for marmalade, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep aa4736c 067/110: Fix some silly errors, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0b1c0fe 069/110: Add swank/gray:stream-read-char-no-hang implementation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 704f164 091/110: Merge branch 'generic', ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep bf87b7c 095/110: Whitespace cleanup, ELPA Syncer, 2021/08/07