emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/spacemacs-theme ec1283ff8f 267/336: Add info for using cus


From: ELPA Syncer
Subject: [nongnu] elpa/spacemacs-theme ec1283ff8f 267/336: Add info for using custom fringe bitmaps without spacemacs
Date: Fri, 14 Jan 2022 10:59:44 -0500 (EST)

branch: elpa/spacemacs-theme
commit ec1283ff8fa10a575e599b7b160e6082f1109409
Author: nashamri <designernasser@gmail.com>
Commit: nashamri <designernasser@gmail.com>

    Add info for using custom fringe bitmaps without spacemacs
---
 README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 48 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 401e9906da..4d76e76749 100644
--- a/README.md
+++ b/README.md
@@ -173,7 +173,7 @@ Here are some screenshots of the various variables:
 
 If you are using [spacemacs](https://github.com/syl20bnr/spacemacs), you can 
put this snippet in your `dotspacemacs/user-init` to override these colors:
 
-```
+```elisp
   (custom-set-variables '(spacemacs-theme-custom-colors
                           '((act1 . "#ff0000")
                             (act2 . "#0000ff")
@@ -182,6 +182,52 @@ If you are using 
[spacemacs](https://github.com/syl20bnr/spacemacs), you can put
 
 This will override `act1`, `act1` and `base` to use the specified colors.
 
-# Like the theme and want to use it in other places?
+### Use a custom flycheck fringe bitmap
+
+If you don't use spacemacs and want to get the same look of flycheck fringe 
bitmap, you can put the following snippet into your `init.el` (this assumes you 
are using `use-package`):
+
+```elisp
+(use-package flycheck
+  :init
+  (progn
+    (define-fringe-bitmap 'my-flycheck-fringe-indicator
+      (vector #b00000000
+              #b00000000
+              #b00000000
+              #b00000000
+              #b00000000
+              #b00000000
+              #b00000000
+              #b00011100
+              #b00111110
+              #b00111110
+              #b00111110
+              #b00011100
+              #b00000000
+              #b00000000
+              #b00000000
+              #b00000000
+              #b00000000))
+
+    (flycheck-define-error-level 'error
+      :severity 2
+      :overlay-category 'flycheck-error-overlay
+      :fringe-bitmap 'my-flycheck-fringe-indicator
+      :fringe-face 'flycheck-fringe-error)
+
+    (flycheck-define-error-level 'warning
+      :severity 1
+      :overlay-category 'flycheck-warning-overlay
+      :fringe-bitmap 'my-flycheck-fringe-indicator
+      :fringe-face 'flycheck-fringe-warning)
+
+    (flycheck-define-error-level 'info
+      :severity 0
+      :overlay-category 'flycheck-info-overlay
+      :fringe-bitmap 'my-flycheck-fringe-indicator
+      :fringe-face 'flycheck-fringe-info)))
+```
+
+## Like the theme and want to use it in other places?
 
 Then check out this project 
[base16-builder](https://github.com/auduchinok/base16-builder).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]