mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
fix: vterm's color
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
## Screenshot
|
||||
|
||||
|
||||

|
||||
|
||||
## Usefull Links
|
||||
@@ -28,7 +27,6 @@
|
||||
- <https://github.com/emacs-evil/evil>: evil mode, enabled by default in doom-emacs.
|
||||
- <https://github.com/meow-edit/meow>
|
||||
|
||||
|
||||
## Install or Update
|
||||
|
||||
After deploying this nix flake, run the following command to install or update emacs:
|
||||
@@ -61,14 +59,14 @@ Here is the cheetsheet related to my DoomEmacs configs. Please read vim's common
|
||||
|
||||
> Terminal(vterm) is useful in GUI mode, I use Zellij instead in terminal mode.
|
||||
|
||||
> We can run any emacs command via `M-x`(Alt + x).
|
||||
|
||||
| Action | Shortcut |
|
||||
| ---------------------- | ------------- |
|
||||
| Popup Terminal(vterm) | `SPC + o + t` |
|
||||
| Open Terminal | `SPC + o + T` |
|
||||
| Open file tree sidebar | `SPC + o + p` |
|
||||
| Exit | `M-x C-c` |
|
||||
| Action | Shortcut |
|
||||
| ---------------------- | ------------------------------------------------- |
|
||||
| Popup Terminal(vterm) | `SPC + o + t` |
|
||||
| Open Terminal | `SPC + o + T` |
|
||||
| Open file tree sidebar | `SPC + o + p` |
|
||||
| Exit | `M-x C-c` |
|
||||
| Execute Command | `M-x`(hold on `Alt`/`option`, and then press `x`) |
|
||||
| Eval Lisp Code | `M-:`(hold on `Alt`/`option`, and then press `:`) |
|
||||
|
||||
### Window Navigation
|
||||
|
||||
|
||||
@@ -96,6 +96,20 @@
|
||||
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
||||
;; they are implemented.
|
||||
|
||||
;; fix vterm's color
|
||||
(set-face-attribute 'vterm-color-default nil :foreground fg)
|
||||
(set-face-attribute 'vterm-color-black nil :background base0 :foreground base0)
|
||||
(set-face-attribute 'vterm-color-red nil :background red :foreground red)
|
||||
(set-face-attribute 'vterm-color-green nil :background green :foreground green)
|
||||
(set-face-attribute 'vterm-color-yellow nil :background yellow :foreground yellow)
|
||||
(set-face-attribute 'vterm-color-blue nil :background blue :foreground blue)
|
||||
(set-face-attribute 'vterm-color-magenta nil :background magenta :foreground magenta)
|
||||
(set-face-attribute 'vterm-color-cyan nil :background cyan :foreground cyan)
|
||||
(set-face-attribute 'vterm-color-white nil :background base8 :foreground base8)
|
||||
|
||||
(after! vterm
|
||||
(setq vterm-shell "nu")) ; use nushell by defualt
|
||||
|
||||
(use-package! lsp-bridge
|
||||
:config
|
||||
(setq lsp-bridge-enable-log nil) ;; disabled for performance
|
||||
|
||||
Reference in New Issue
Block a user