[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 5324775417 321/323: Add beardbolt-shuffle-rai
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 5324775417 321/323: Add beardbolt-shuffle-rainbow option |
Date: |
Thu, 9 Mar 2023 10:59:00 -0500 (EST) |
branch: externals/beardbolt
commit 53247754177399dc32681c17f545f575fe2a31ae
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Add beardbolt-shuffle-rainbow option
* README.md: Mention change.
* beardbolt.el (bb-shuffle-rainbow): New option.
(bb--rainbowize): Use it.
---
README.md | 3 +++
beardbolt.el | 9 ++++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 028faedd06..6d1a8a5f98 100644
--- a/README.md
+++ b/README.md
@@ -93,6 +93,9 @@ Beardbolt will pick them up immediately on each run.
* `beardbolt-ccj-extra-flags`: A string of extra compilation flags to
append to the compilation command devined from
`compile_commands.json`.
+
+* `beardbolt-shuffle-rainbow`: Use less pretty rainbow colors, but
+ potentially more useful and contrasting ones.
<a name="benchmarks"></a>
### Benchmarks vs RMSbolt
diff --git a/beardbolt.el b/beardbolt.el
index 0e87ac733f..675ec33597 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -77,6 +77,9 @@ Passed directly to compiler or disassembler."
(bb--defoption bb-ccj-extra-flags nil
"Extra flags for compilation command devined from compile_commands.json."
:type 'string :safe (lambda (v) (or (null v) (stringp v))))
+(bb--defoption bb-shuffle-rainbow nil
+ "Choose less pretty, but potentially more contrasting rainbow colors."
+ :type 'boolean :safe 'booleanp)
(defface bb-current-line-face
'((t (:weight bold :inherit highlight)))
@@ -444,6 +447,7 @@ some parts of the buffer and setup a buffer-local value of
all-ovs
(idx 0)
total
+ (shuffle (buffer-local-value 'bb-shuffle-rainbow src-buffer))
(ht (make-hash-table)))
(cl-loop initially (goto-char (point-min))
with current-line = 1
@@ -465,8 +469,11 @@ some parts of the buffer and setup a buffer-local value of
(lambda (src-line asm-pos-regions)
(when (not (zerop src-line))
(cl-loop
+ with i = (if shuffle
+ (mod (* 27 (cl-incf idx)) total)
+ (cl-incf idx))
with bright-hsl =(list (mod (+ (cl-first background-hsl)
- (/ (cl-incf idx) (float total)))
+ (/ i (float total)))
1)
(min (max (cl-second background-hsl)
0.25)
- [elpa] externals/beardbolt 2421b29094 255/323: Remove .ert-runner, .gitlab-ci.yml and Cask, (continued)
- [elpa] externals/beardbolt 2421b29094 255/323: Remove .ert-runner, .gitlab-ci.yml and Cask, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 49e2500be1 259/323: Use shorthands so I can just type bb- instead of beardbolt-, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 58b07a215c 268/323: Simplify some code, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 9f6d1cf10c 269/323: Remove some rmsbolt remnants, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 5deed3972e 276/323: * beardbolt.el (bb--reachable-p, bb--process-asm): Use obarrays., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 291f82a324 266/323: Continue rewriting, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3195997ccd 275/323: * beardbolt.el (bb--synch-relation-overlays): Rework and bugfix., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a13f8fe7f4 287/323: Reset beardbolt-specific locals before hacking them in, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 85d24d69f1 286/323: Add bb-kill-symbol-re option, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 10fe7307c3 291/323: Get a better C++ starter example, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 5324775417 321/323: Add beardbolt-shuffle-rainbow option,
ELPA Syncer <=
- [elpa] externals/beardbolt 90b5cad9c1 016/323: Finish initial implementation of dissasembly, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt de183bea12 010/323: Add support for c++ and c, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 627dd4c1c9 059/323: Allow for custom asm processing functions, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 978d8290a1 067/323: Add guide on adding new languages, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f911321a02 058/323: Add support for automatically hot recompiling, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 86742e7b76 055/323: Merge branch 'master' of gitlab.com:jgkamat/rmsbolt, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 01f7664eda 060/323: Fix tests, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 36b701d70e 072/323: Fix broken tests, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 8d992d1da7 103/323: Add links to README, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a74d54e764 109/323: Fix tests, ELPA Syncer, 2023/03/09