mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-02-23 00:14:49 +01:00
fix: emacs - fix & add docs
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
- modal editing:
|
||||
- <https://github.com/emacs-evil/evil>: evil mode, enabled by default in doom-emacs.
|
||||
- <https://github.com/meow-edit/meow>
|
||||
- Emacs Wiki: <https://www.emacswiki.org/emacs/SiteMap>
|
||||
|
||||
Emacs daemon:
|
||||
|
||||
@@ -32,6 +33,7 @@ zellij provides a more powerful and stable terminal experience, so here is zelli
|
||||
| Horizontal Split Terminal | `Ctrl + <p> + <d>` |
|
||||
| Vertical Split Terminal | `Ctrl + <p> + <n>` |
|
||||
| Open file tree sidebar | `SPC + o + p` |
|
||||
| Exit | `M-x C-c` |
|
||||
|
||||
## Visual Modes
|
||||
|
||||
@@ -68,12 +70,14 @@ The same as neovim/vim:
|
||||
|
||||
## Splitting and Buffers
|
||||
|
||||
| Action | Shortcut |
|
||||
| --------------------- | ----------------- |
|
||||
| Next Buffer (Tab) | `]b` |
|
||||
| Previous Buffer (Tab) | `[b` |
|
||||
| Buffer List | `<Space> + ,` |
|
||||
| Save all buffers(Tab) | `<Space> + b + S` |
|
||||
| Action | Shortcut |
|
||||
| ----------------------- | ----------------- |
|
||||
| Next Buffer (Tab) | `]b` |
|
||||
| Previous Buffer (Tab) | `[b` |
|
||||
| Buffer List | `<Space> + ,` |
|
||||
| Save all buffers(Tab) | `<Space> + b + S` |
|
||||
| Kill the current buffer | `<Space> + b + k` |
|
||||
| Kill all buffers | `<Space> + b + K` |
|
||||
|
||||
## Editing and Formatting
|
||||
|
||||
@@ -83,6 +87,7 @@ The same as neovim/vim:
|
||||
| Code Actions | `<Space> + ca` |
|
||||
| Rename | `<Space> + cr` |
|
||||
| Opening LSP symbols | `<Space> + cS` |
|
||||
| Show all LSP Errors | `<Space> + c + x/X` |
|
||||
| (Un)Comment the selected context | `gc` |
|
||||
| (Un)Comment the current line | `gcc` |
|
||||
| Open filepath/URL at cursor | `gf` |
|
||||
|
||||
@@ -36,7 +36,15 @@
|
||||
;; https://github.com/catppuccin/emacs/
|
||||
(setq doom-theme 'catppuccin)
|
||||
(setq catppuccin-flavor 'mocha) ;; or 'latte, 'macchiato, or 'frappe
|
||||
(catppuccin-reload)
|
||||
;; make emacs transparent(do not works on terminal)
|
||||
(set-frame-parameter nil 'alpha-background 70)
|
||||
(add-to-list 'default-frame-alist '(alpha-background . 70))
|
||||
|
||||
;;(set-frame-parameter (selected-frame) 'alpha '(<active> . <inactive>))
|
||||
;;(set-frame-parameter (selected-frame) 'alpha <both>)
|
||||
(set-frame-parameter (selected-frame) 'alpha '(85 . 50))
|
||||
(add-to-list 'default-frame-alist '(alpha . (85 . 50)))
|
||||
|
||||
|
||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||
|
||||
@@ -76,7 +76,7 @@ in {
|
||||
# homebrew need to be installed manually, see https://brew.sh
|
||||
# https://github.com/LnL7/nix-darwin/blob/master/modules/homebrew.nix
|
||||
homebrew = {
|
||||
enable = true;
|
||||
enable = false; # disable homebrew for fast deploy
|
||||
|
||||
onActivation = {
|
||||
autoUpdate = false;
|
||||
|
||||
Reference in New Issue
Block a user