Sacha Chua's Avatar

Sacha Chua

@sachachua.com.bsky.social

Interests include: #Emacs, #OrgMode, #elisp, #nodejs, #python, #sketchnotes, #parenting, #cooking, #gardening, #knitting, #sewing, #captioning. Originally from Manila, now in Toronto. Married to a Vim guy, raising an 8-year old (editor?) sachachua.com

427 Followers  |  338 Following  |  46 Posts  |  Joined: 15.11.2024  |  1.4518

Latest posts by sachachua.com on Bluesky

In other news - clojure-ts-mode 0.5 is out and it's epic! Some highlights include:

- the ability to font-lock custom def-like forms
- font-locking JS code embedded in #ClojureScript
- #Tree-sitter powered completion source that provides reasonable completions for the current file

#Clojure #Emacs

04.06.2025 07:23 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
On code completions via LLMs | fn.ht

I worked on some modes for code completion via LLMs.

I still want to tweak the modes a bit more, before publishing them.

Here's some thoughts before I do that:

fn.ht/on-code-comp...

#emacs #llm

04.06.2025 14:03 β€” πŸ‘ 0    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
How to sort lines of text with Emacs Alphabetically sorting a bunch of text is something I need to do fairly regularly. Thankfully Emacs has a built-in function to help with that: `sort-lines`. It looks like this: Calling `M-x sort-lines` will sort all lines in the current region. Lines are sorted numerically, then alphabetically, and capital letters are sorted before lower-case ones (e.g. `A` will come before `a`). Emacs will only sort text in the highlighted region, so it's important to mark everything that needs sorting. Otherwise it can end up like this: `sort-lines` is one of those handy little functions that I never knew I wanted, until I was sat with a pile of unsorted text and wondering "I wonder if Emacs can help".

This blog post about how to do a simple thing in emacs is excellent. It has all the relevant information but isn’t overly long, and it has helpful GIF screencasts.

https://www.philnewton.net/blog/sorting-lines-with-emacs/

#emacs

04.06.2025 23:16 β€” πŸ‘ 1    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
A screenshot of the text table:

 But first: β€œscreenshots”! My time tracking interface now looks like this:

| Orga | Mein Orga | Personal      | Kanban (other) |
| Proj | Apps      | Scrum A       | Scrum B        |
|      | Reviews   | clock in LAST | clock OUT      |

I can click each of the links to activate booking on the respective task, or switch to it. clock OUT obviously clocks out.

A screenshot of the text table: But first: β€œscreenshots”! My time tracking interface now looks like this: | Orga | Mein Orga | Personal | Kanban (other) | | Proj | Apps | Scrum A | Scrum B | | | Reviews | clock in LAST | clock OUT | I can click each of the links to activate booking on the respective task, or switch to it. clock OUT obviously clocks out.

@sacha Maybe interesting:

Single-click time tracking with links
https://www.draketo.de/software/org-mode-tipps#clickable-time-tracking

#emacs #orgmode

20.05.2025 08:53 β€” πŸ‘ 2    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
2025-05-19 Emacs news :: Sacha Chua

2025-05-19 Emacs news sachachua.com/blog/2025/05... #emacs #EmacsNews

20.05.2025 03:19 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
2025-05-05 Emacs news :: Sacha Chua

2025-05-05 Emacs news sachachua.com/blog/2025/05... #emacs #EmacsNews

05.05.2025 18:50 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
2025-04-28 Emacs news :: Sacha Chua

2025-04-28 Emacs news sachachua.com/blog/2025/04... #emacs #EmacsNews

29.04.2025 14:17 β€” πŸ‘ 9    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
2025-04-21 Emacs news :: Sacha Chua

2025-04-21 Emacs news sachachua.com/blog/2025/04... #emacs #EmacsNews

21.04.2025 18:26 β€” πŸ‘ 9    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
2025-04-14 Emacs news :: Sacha Chua

2025-04-14 Emacs news sachachua.com/blog/2025/04... #emacs #EmacsNews

14.04.2025 17:04 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
elisp snippet that configures ocaml environment for emacs

elisp snippet that configures ocaml environment for emacs

Ok, my first significant tinkering in #emacs – I reconfigured eglot's #ocaml settings to use dune developer preview to activate ocamllsp.

Caveat: ocamlformat doesn't work. I don't know how to ask eglot to use `dune tools exec ocamlformat`. Help appreciated.

discuss.ocaml.org/t/ann-dune-d...

08.04.2025 12:24 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 3    πŸ“Œ 0
2025-03-31 Emacs news :: Sacha Chua

2025-03-31 Emacs news sachachua.com/blog/2025/03... #emacs #EmacsNews

31.03.2025 16:44 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 2
2025-03-24 Emacs news :: Sacha Chua

2025-03-24 Emacs news sachachua.com/blog/2025/03... #emacs #EmacsNews

25.03.2025 14:43 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I've been using beorg, and I hear Plain Org is also pretty nifty.

24.03.2025 23:32 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
How I Wrote This Website

The obligatory "how I wrote this website" blog post:

trevdev.ca/blog/how-i-w...

#emacs #orgmode

24.03.2025 05:14 β€” πŸ‘ 0    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Insert a link to an Org Mode heading from an org-refile prompt :: Sacha Chua

For the use case of linking to a heading somewhere in one of my org-refile-targets, I use C-u C-c C-w (org-refile) and then an Embark action to insert the link to the heading: sachachua.com/blog/2024/10...

24.03.2025 23:31 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
2025-03-10 Emacs news :: Sacha Chua

2025-03-10 Emacs news sachachua.com/blog/2025/03... #emacs #EmacsNews

11.03.2025 00:58 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@peregrinator.site Thanks for sharing your #emacs config! Would you consider getting emacs.peregrinator.site/index.xml working, and would it be okay for me to add it to planet.emacslife.com so that other people can come across your Emacs posts easily? =)

10.03.2025 21:23 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
2025-03-03 Emacs news :: Sacha Chua

2025-03-03 Emacs news sachachua.com/blog/2025/03... #emacs #EmacsNews

03.03.2025 15:31 β€” πŸ‘ 6    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
2025-02-24 Emacs news :: Sacha Chua

2025-02-24 Emacs news sachachua.com/blog/2025/02... #emacs #EmacsNews

24.02.2025 15:48 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1
2025-02-17 Emacs news :: Sacha Chua

2025-02-17 Emacs news sachachua.com/blog/2025/02... #emacs #EmacsNews

18.02.2025 01:40 β€” πŸ‘ 7    πŸ” 2    πŸ’¬ 0    πŸ“Œ 1

That is one of the downsides of using a starter kit like Spacemacs, sorry... You'll probably need to look for Spacemacs-specific tutorials. Doom Emacs might also be a similar starter kit (if you're looking for Vim-like keybindings) with possibly a more active community.

18.02.2025 00:29 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The magic of iCal =)

17.02.2025 16:02 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
2025-02-10 Emacs news :: Sacha Chua

2025-02-10 Emacs news sachachua.com/blog/2025/02... #emacs #EmacsNews

10.02.2025 22:14 β€” πŸ‘ 8    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0
Preview
2025-02-03 Emacs news :: Sacha Chua Copyright Β© 2001-2024 Sacha Chua (sacha@sachachua.com). Emacs code snippets are generally under GPLv3+; other snippets are dual-licensed under the MIT License or GPLv3+ unless otherwise indicated. Please feel free to reuse or share stuff under a Creative Commons Attribution license unless otherwise noted. Thanks for reading!

2025-02-03 Emacs news sachachua.com/blog/2025/02... #emacs #EmacsNews

03.02.2025 17:33 β€” πŸ‘ 11    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
2025-01-27 Emacs news :: Sacha Chua

2025-01-27 Emacs news sachachua.com/blog/2025/01... #emacs #EmacsNews

28.01.2025 00:04 β€” πŸ‘ 10    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
2025-01-20 Emacs news :: Sacha Chua

2025-01-20 Emacs news sachachua.com/blog/2025/01... #emacs #EmacsNews

20.01.2025 18:09 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
2025-01-13 Emacs news :: Sacha Chua

2025-01-13 Emacs news sachachua.com/blog/2025/01... #emacs #EmacsNews

13.01.2025 15:54 β€” πŸ‘ 12    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
2025-01-06 Emacs news :: Sacha Chua

2025-01-06 Emacs news sachachua.com/blog/2025/01... #emacs #EmacsNews

06.01.2025 18:42 β€” πŸ‘ 8    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1
Preview
From the orgmode community on Reddit: (Released) org-supertag 1.0.0 Released: Unlock Workflows and Custom Commands with the New Behavior System Explore this post and more from the orgmode community

#emacs org-supertag v1.0.0 released!

The highlight of this release is the introduction of the "Behavior System," which enables you to create custom commands and automate workflows seamlessly.

www.reddit.com/r/orgmode/s/...

01.01.2025 02:24 β€” πŸ‘ 4    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0
2024-12-30 Emacs news :: Sacha Chua

2024-12-30 Emacs news sachachua.com/blog/2024/12... #emacs #EmacsNews

31.12.2024 03:02 β€” πŸ‘ 17    πŸ” 3    πŸ’¬ 0    πŸ“Œ 1

@sachachua.com is following 20 prominent accounts