fniessen / emacs-leuven-theme

This Emacs theme reduces eye strain with a light, high-contrast color scheme, syntax highlighting, and support for multiple modes. Enhance your coding experience! #emacs #theme #coding #orgmode
GNU General Public License v3.0
696 stars 59 forks source link

prompt color settings in shell-mode(comint-mode) #77

Closed ouonline closed 3 years ago

ouonline commented 3 years ago

Hi,

I customize PS1 in ~/.bashrc:

modified

but leuven theme overrides my settings:

orig

After removing the comint-mode settings I get what I want:

diff --git a/leuven-theme.el b/leuven-theme.el
index fd2298c..5ffcc22 100644
--- a/leuven-theme.el
+++ b/leuven-theme.el
@@ -402,9 +402,6 @@ more...")
    `(circe-originator-face ((,class (:foreground "blue"))))
    `(circe-prompt-face ((,class (:foreground "red"))))
    `(circe-server-face ((,class (:foreground "#99CAE5"))))
-   `(comint-highlight-input ((,class (:weight bold :foreground "#0000FF" :inherit nil))))
-   ;; `(comint-highlight-prompt ((,class (:weight bold :foreground "black" :background "gold"))))
-   `(comint-highlight-prompt ((,class (:weight bold :foreground "#0000FF" :inherit nil))))

    ;; `(ac-selection-face ((,class ,completion-selected-candidate)))
    `(ac-selection-face ((,class (:weight bold :foreground "white" :background "orange")))) ; TEMP For diff'ing AC from Comp.

I wonder if these settings can be removed to leave comint-mode prompt color unchanged.

fniessen commented 3 years ago

It's nice to have the prompt highlighted correctly and consequently between different environments (R, emacs-lisp subsystem maybe... and the Shell). But I understand your problem and do not see other solution than to remove these settings from my theme.

Thanks for using it!

ouonline commented 3 years ago

It's nice to have the prompt highlighted correctly and consequently between different environments (R, emacs-lisp subsystem maybe... and the Shell). But I understand your problem and do not see other solution than to remove these settings from my theme.

Thanks for using it!

I have been using Leuven(the version released with Emacs, though a little old) as my default theme for several years. It is an amazing theme for me. Thanks for sharing :)