Skip to content

Commit

Permalink
Weekly update from 2024-04-01
Browse files Browse the repository at this point in the history
  • Loading branch information
emacs-reddit-tips-n-tricks-bot committed Apr 1, 2024
1 parent cf27126 commit 990b6ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions out.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## u/vkazanov [🔗](https://www.reddit.com/r/emacs/comments/1bdm6mc/comment/kuo1f9y)
**Votes:** 16
**Votes:** 17

A dump of my Emacs-related principles after 18 years of tinkering:

Expand All @@ -16,7 +16,7 @@ A dump of my Emacs-related principles after 18 years of tinkering:
I am a beginner though, things might change.

## u/geza42 [🔗](https://www.reddit.com/r/emacs/comments/1b20xgn/comment/ksifwh1)
**Votes:** 13
**Votes:** 12

If you use an LSP server with semantic highlighting, it's worth checking out the value of `font-lock-maximum-decoration`. For example, I use `c++-mode` with `lsp-mode` (with clangd), I decreased `font-lock-maximum-decoration` to `2`, and I didn't notice any highlighting difference (because the lost highlighting by `c++-mode` gets highlighted by `lsp-mode`), while `c++-mode` font-locking become faster (`c++-mode` 's font-locking works well 99.9% of the time, but sometimes it can become slow in some circumstances, these slowdowns seems to be gone).

Expand All @@ -26,4 +26,9 @@ I use:`(setq font-lock-maximum-decoration '((c-mode . 2) (c++-mode . 2) (t . t))
**Votes:** 8

A blog post regarding my own Emacs config aiming to get the same user experience on both TUI and GUI.
[https://www.rahuljuliato.com/posts/lemacs](https://www.rahuljuliato.com/posts/lemacs)
[https://www.rahuljuliato.com/posts/lemacs](https://www.rahuljuliato.com/posts/lemacs)

## u/demosthenex [🔗](https://www.reddit.com/r/emacs/comments/1b7uj43/comment/ktogga6)
**Votes:** 8

M-x ielm Use the repl while learning elisp coding. I had no idea!
2 changes: 1 addition & 1 deletion posts.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"kuo1f9y": {"author": "vkazanov", "upvotes": 16, "body": "## u/vkazanov [\ud83d\udd17](https://www.reddit.com/r/emacs/comments/1bdm6mc/comment/kuo1f9y) \n**Votes:** 16\n\nA dump of my Emacs-related principles after 18 years of tinkering:\n\n1. Don't try to replicate a static IDE setup, Emacs is fluid. \n2. Emacs Lisp is inevitable for Emacser to make this fluidity possible.\n3. Language-agnostic is better than language-specific. \n4. Embrace display-alist, fast window manipulation, winner-mode. \n5. .emacs.el reset every couple of years to accomodate innovation. \n6. Org-mode/org-roam for all documentation, projects, tips. The agenda is not set in stone. Use queries, filters, tweak, evolve things. \n7. A contextual dwim is always better than many keybindings. \n8. Use completion everywhere on everything (vertico is magic). \n9. Contribute to the core and favourite packages.\n\nI am a beginner though, things might change."}, "ksifwh1": {"author": "geza42", "upvotes": 13, "body": "## u/geza42 [\ud83d\udd17](https://www.reddit.com/r/emacs/comments/1b20xgn/comment/ksifwh1) \n**Votes:** 13\n\nIf you use an LSP server with semantic highlighting, it's worth checking out the value of `font-lock-maximum-decoration`. For example, I use `c++-mode` with `lsp-mode` (with clangd), I decreased `font-lock-maximum-decoration` to `2`, and I didn't notice any highlighting difference (because the lost highlighting by `c++-mode` gets highlighted by `lsp-mode`), while `c++-mode` font-locking become faster (`c++-mode` 's font-locking works well 99.9% of the time, but sometimes it can become slow in some circumstances, these slowdowns seems to be gone).\n\nI use:`(setq font-lock-maximum-decoration '((c-mode . 2) (c++-mode . 2) (t . t)))`"}, "kslwb72": {"author": "LionyxML", "upvotes": 8, "body": "## u/LionyxML [\ud83d\udd17](https://www.reddit.com/r/emacs/comments/1b20xgn/comment/kslwb72) \n**Votes:** 8\n\nA blog post regarding my own Emacs config aiming to get the same user experience on both TUI and GUI. \n[https://www.rahuljuliato.com/posts/lemacs](https://www.rahuljuliato.com/posts/lemacs)"}}
{"kuo1f9y": {"author": "vkazanov", "upvotes": 17, "body": "## u/vkazanov [\ud83d\udd17](https://www.reddit.com/r/emacs/comments/1bdm6mc/comment/kuo1f9y) \n**Votes:** 17\n\nA dump of my Emacs-related principles after 18 years of tinkering:\n\n1. Don't try to replicate a static IDE setup, Emacs is fluid. \n2. Emacs Lisp is inevitable for Emacser to make this fluidity possible.\n3. Language-agnostic is better than language-specific. \n4. Embrace display-alist, fast window manipulation, winner-mode. \n5. .emacs.el reset every couple of years to accomodate innovation. \n6. Org-mode/org-roam for all documentation, projects, tips. The agenda is not set in stone. Use queries, filters, tweak, evolve things. \n7. A contextual dwim is always better than many keybindings. \n8. Use completion everywhere on everything (vertico is magic). \n9. Contribute to the core and favourite packages.\n\nI am a beginner though, things might change."}, "ksifwh1": {"author": "geza42", "upvotes": 12, "body": "## u/geza42 [\ud83d\udd17](https://www.reddit.com/r/emacs/comments/1b20xgn/comment/ksifwh1) \n**Votes:** 12\n\nIf you use an LSP server with semantic highlighting, it's worth checking out the value of `font-lock-maximum-decoration`. For example, I use `c++-mode` with `lsp-mode` (with clangd), I decreased `font-lock-maximum-decoration` to `2`, and I didn't notice any highlighting difference (because the lost highlighting by `c++-mode` gets highlighted by `lsp-mode`), while `c++-mode` font-locking become faster (`c++-mode` 's font-locking works well 99.9% of the time, but sometimes it can become slow in some circumstances, these slowdowns seems to be gone).\n\nI use:`(setq font-lock-maximum-decoration '((c-mode . 2) (c++-mode . 2) (t . t)))`"}, "kslwb72": {"author": "LionyxML", "upvotes": 8, "body": "## u/LionyxML [\ud83d\udd17](https://www.reddit.com/r/emacs/comments/1b20xgn/comment/kslwb72) \n**Votes:** 8\n\nA blog post regarding my own Emacs config aiming to get the same user experience on both TUI and GUI. \n[https://www.rahuljuliato.com/posts/lemacs](https://www.rahuljuliato.com/posts/lemacs)"}, "ktogga6": {"author": "demosthenex", "upvotes": 8, "body": "## u/demosthenex [\ud83d\udd17](https://www.reddit.com/r/emacs/comments/1b7uj43/comment/ktogga6) \n**Votes:** 8\n\nM-x ielm Use the repl while learning elisp coding. I had no idea!"}}

0 comments on commit 990b6ed

Please sign in to comment.