mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
feat: emacs
This commit is contained in:
@@ -8,7 +8,9 @@
|
|||||||
- modal editing:
|
- modal editing:
|
||||||
- <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>
|
||||||
|
- LSP Client: <https://github.com/manateelazycat/lsp-bridge>
|
||||||
- Emacs Wiki: <https://www.emacswiki.org/emacs/SiteMap>
|
- Emacs Wiki: <https://www.emacswiki.org/emacs/SiteMap>
|
||||||
|
- Awesome Emacs: <https://github.com/emacs-tw/awesome-emacs#lsp-client>
|
||||||
|
|
||||||
Emacs daemon:
|
Emacs daemon:
|
||||||
|
|
||||||
@@ -23,6 +25,14 @@ After deploying this nix flake, run the following command to install or update e
|
|||||||
doom sync
|
doom sync
|
||||||
```
|
```
|
||||||
|
|
||||||
|
when in doubt, run `doom sync`!
|
||||||
|
|
||||||
|
## Why emacs?
|
||||||
|
|
||||||
|
1. Explore the unknown, just for fun!
|
||||||
|
2. Better support for Lisp-like Languages.
|
||||||
|
3. Org Mode
|
||||||
|
|
||||||
## Terminal Related
|
## Terminal Related
|
||||||
|
|
||||||
zellij provides a more powerful and stable terminal experience, so here is zellij's terminal shortcuts I use frequently now:
|
zellij provides a more powerful and stable terminal experience, so here is zellij's terminal shortcuts I use frequently now:
|
||||||
|
|||||||
@@ -37,13 +37,13 @@
|
|||||||
(setq doom-theme 'catppuccin)
|
(setq doom-theme 'catppuccin)
|
||||||
(setq catppuccin-flavor 'mocha) ;; or 'latte, 'macchiato, or 'frappe
|
(setq catppuccin-flavor 'mocha) ;; or 'latte, 'macchiato, or 'frappe
|
||||||
;; make emacs transparent(do not works on terminal)
|
;; make emacs transparent(do not works on terminal)
|
||||||
(set-frame-parameter nil 'alpha-background 70)
|
;; (set-frame-parameter nil 'alpha-background 70)
|
||||||
(add-to-list 'default-frame-alist '(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 '(<active> . <inactive>))
|
||||||
;;(set-frame-parameter (selected-frame) 'alpha <both>)
|
;;(set-frame-parameter (selected-frame) 'alpha <both>)
|
||||||
(set-frame-parameter (selected-frame) 'alpha '(85 . 50))
|
;; (set-frame-parameter (selected-frame) 'alpha '(85 . 50))
|
||||||
(add-to-list 'default-frame-alist '(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
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
@@ -105,9 +105,14 @@
|
|||||||
:config
|
:config
|
||||||
(super-save-mode +1))
|
(super-save-mode +1))
|
||||||
|
|
||||||
(setq super-save-auto-save-when-idle t)
|
(after! super-save
|
||||||
(setq super-save-all-buffers t)
|
(setq super-save-auto-save-when-idle t)
|
||||||
(setq super-save-delete-trailing-whitespace t)
|
(setq super-save-all-buffers t)
|
||||||
|
(setq super-save-delete-trailing-whitespace t))
|
||||||
|
|
||||||
(use-package wakatime-mode
|
(use-package wakatime-mode
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
|
;; fully enable tree-sitter highlighting
|
||||||
|
(after! tree-sitter
|
||||||
|
(setq +tree-sitter-hl-enabled-modes t))
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
(emoji +unicode) ; 🙂
|
(emoji +unicode) ; 🙂
|
||||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
;;hydra
|
;;hydra
|
||||||
;;indent-guides ; highlighted indent columns
|
indent-guides ; highlighted indent columns
|
||||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||||
;;minimap ; show a map of the code on the side
|
;;minimap ; show a map of the code on the side
|
||||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||||
@@ -43,9 +43,9 @@
|
|||||||
;; neotree ; a project drawer, like NERDTree for vim
|
;; neotree ; a project drawer, like NERDTree for vim
|
||||||
ophints ; highlight the region an operation acts on
|
ophints ; highlight the region an operation acts on
|
||||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||||
;;tabs ; a tab bar for Emacs
|
tabs ; a tab bar for Emacs
|
||||||
treemacs ; a project drawer, like neotree but cooler
|
treemacs ; a project drawer, like neotree but cooler
|
||||||
;;unicode ; extended unicode support for various languages
|
unicode ; extended unicode support for various languages
|
||||||
(vc-gutter +pretty) ; vcs diff in the fringe
|
(vc-gutter +pretty) ; vcs diff in the fringe
|
||||||
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||||
;;window-select ; visually switch windows
|
;;window-select ; visually switch windows
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
;;make ; run make tasks from Emacs
|
;;make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
;;pdf ; pdf enhancements
|
pdf ; pdf enhancements
|
||||||
;;prodigy ; FIXME managing external services & code builders
|
;;prodigy ; FIXME managing external services & code builders
|
||||||
;;rgb ; creating color strings
|
;;rgb ; creating color strings
|
||||||
;;taskrunner ; taskrunner for all your projects
|
;;taskrunner ; taskrunner for all your projects
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"modules-right": [
|
"modules-right": [
|
||||||
"mpd",
|
"mpd",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"battery",
|
"battery",
|
||||||
"memory",
|
"memory",
|
||||||
"cpu",
|
"cpu",
|
||||||
"network",
|
"network",
|
||||||
|
|||||||
Reference in New Issue
Block a user