Skip to content

Commit

Permalink
Merge pull request #17 from emacs-rustic/color-names
Browse files Browse the repository at this point in the history
Use xterm-color-names in rustic compilation buffers
  • Loading branch information
CeleritasCelery authored Jun 26, 2024
2 parents 563c7ac + 802c6ec commit 4d9fae5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ FTR #174 #179 #236

The colors that are displayed in compilation buffers come from cargo
and are translated by xterm-color. You can change these colors by
modifying `rustic-ansi-faces`.
modifying `xterm-color-names` and `xterm-color-names-bright`.

`rustic-compilation-mode` doesn't use the default faces of
compile.el. If you want to change these colors you can use something
Expand Down
15 changes: 0 additions & 15 deletions rustic-compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,6 @@
"Override `compilation-column-face' for rust compilation."
:group 'rustic-compilation)

(defcustom rustic-ansi-faces ["black"
"red3"
"green3"
"yellow3"
"blue2"
"magenta3"
"cyan3"
"white"]
"Term ansi faces."
:type '(vector string string string string string string string string)
:group 'rustic-compilation)

;;; Compilation-mode

(defvar rustic-compilation-mode-map
Expand Down Expand Up @@ -184,9 +172,6 @@ Error matching regexes from compile.el are removed."
(setq-local compilation-column-face 'rustic-compilation-column)
(setq-local compilation-line-face 'rustic-compilation-line)

(setq-local xterm-color-names-bright rustic-ansi-faces)
(setq-local xterm-color-names rustic-ansi-faces)

(setq-local compilation-error-regexp-alist-alist nil)
(add-to-list 'compilation-error-regexp-alist-alist
(cons 'rustic-error rustic-compilation-error))
Expand Down

0 comments on commit 4d9fae5

Please sign in to comment.