Emacs: Add hexrgb and use it to compute 'vhl/default-face.

This commit is contained in:
tastytea 2020-06-02 15:18:03 +02:00
parent 1d98fccf74
commit 05c54c8c28
3 changed files with 17 additions and 4 deletions

View File

@ -1,6 +1,6 @@
;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-05-27T14:02:27+0200>
;; Time-stamp: <2020-06-02T15:16:39+0200>
;;; Commentary:
;; * Setup scratch buffer.
@ -106,10 +106,11 @@
(use-package volatile-highlights
:demand t
:diminish volatile-highlights-mode
:after (doom-themes display-line-numbers)
:after (doom-themes display-line-numbers hexrgb)
:config (progn
(set-face-background 'vhl/default-face
(face-foreground 'line-number))
(hexrgb-increment-equal-rgb
(face-background 'default) 2 8))
(volatile-highlights-mode)))
(provide 'basics/buffers)

11
init.d/misc/libs.el Normal file
View File

@ -0,0 +1,11 @@
;;; libs.el --- Libraries -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
;; Functions to manipulate colors, including RGB hex strings.
(use-package hexrgb
:commands (hexrgb-increment-equal-rgb))
(provide 'misc/libs)
;;; libs.el ends here

View File

@ -1,6 +1,6 @@
;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-05-29T17:22:23+0200>
;; Time-stamp: <2020-06-02T15:07:00+0200>
;;; Commentary:
;; Requires at least Emacs 26.
@ -34,6 +34,7 @@
(require 'misc/documentation)
(require 'misc/email)
(require 'misc/misc)
(require 'misc/libs)
(require 'programming/common)
(require 'programming/lsp)