diff --git a/home/base/desktop/editors/emacs/README.md b/home/base/desktop/editors/emacs/README.md index 50bb3f7b..83dfef05 100644 --- a/home/base/desktop/editors/emacs/README.md +++ b/home/base/desktop/editors/emacs/README.md @@ -10,7 +10,6 @@ ## Screenshot - ![](/_img/emacs-2024-01-07.webp) ## Usefull Links @@ -28,7 +27,6 @@ - : evil mode, enabled by default in doom-emacs. - - ## 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 diff --git a/home/base/desktop/editors/emacs/doom/config.el b/home/base/desktop/editors/emacs/doom/config.el index 5915bdd8..f41d8fa3 100644 --- a/home/base/desktop/editors/emacs/doom/config.el +++ b/home/base/desktop/editors/emacs/doom/config.el @@ -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