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
|
## Screenshot
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Usefull Links
|
## Usefull Links
|
||||||
@@ -28,7 +27,6 @@
|
|||||||
- <https://github.com/emacs-evil/evil>: evil mode, enabled by default in doom-emacs.
|
- <https://github.com/emacs-evil/evil>: evil mode, enabled by default in doom-emacs.
|
||||||
- <https://github.com/meow-edit/meow>
|
- <https://github.com/meow-edit/meow>
|
||||||
|
|
||||||
|
|
||||||
## Install or Update
|
## Install or Update
|
||||||
|
|
||||||
After deploying this nix flake, run the following command to install or update emacs:
|
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.
|
> 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 |
|
||||||
|
| ---------------------- | ------------------------------------------------- |
|
||||||
| Action | Shortcut |
|
| Popup Terminal(vterm) | `SPC + o + t` |
|
||||||
| ---------------------- | ------------- |
|
| Open Terminal | `SPC + o + T` |
|
||||||
| Popup Terminal(vterm) | `SPC + o + t` |
|
| Open file tree sidebar | `SPC + o + p` |
|
||||||
| Open Terminal | `SPC + o + T` |
|
| Exit | `M-x C-c` |
|
||||||
| Open file tree sidebar | `SPC + o + p` |
|
| Execute Command | `M-x`(hold on `Alt`/`option`, and then press `x`) |
|
||||||
| Exit | `M-x C-c` |
|
| Eval Lisp Code | `M-:`(hold on `Alt`/`option`, and then press `:`) |
|
||||||
|
|
||||||
### Window Navigation
|
### Window Navigation
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,20 @@
|
|||||||
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
||||||
;; they are implemented.
|
;; 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
|
(use-package! lsp-bridge
|
||||||
:config
|
:config
|
||||||
(setq lsp-bridge-enable-log nil) ;; disabled for performance
|
(setq lsp-bridge-enable-log nil) ;; disabled for performance
|
||||||
|
|||||||
Reference in New Issue
Block a user