K
Karthinks
karthinks.com · Personal blog · on HN since 2020
Karthik writes detailed guides on Emacs, covering built-in features, window management, Avy, Embark, LaTeX input and LLM integration.
What HN saysHN commenters recommend his Emacs posts as useful, including the Batteries Included, Avy and window management guides, even one Vim user working through them.
23HN people shared it
17linked it in comments
16stories submitted
937story points
5 months agolast shared
2020people per year2026
Most-shared posts
- 1LaTeX Input for Impatient Scholars7 people · 70 points · first shared 2021 · 25 comments on HN
- 2Avy Can Do Anything6 people · 168 points · first shared 2021 · 52 comments on HN
- 3Batteries included with Emacs (2020)5 people · 404 points · first shared 2020 · 218 comments on HN
- 4Ways to use Embark (2021)4 people · 39 points · first shared 2021 · 4 comments on HN
- 5The Emacs Window Management Almanac2 people · 198 points · first shared 2024 · 37 comments on HN
- 6More Batteries Included with Emacs2 people · 4 points · first shared 2020 · discussion on HN
- 7Emacs: Fringe Matters, Finding the Right Difference1 people · 43 points · first shared 2025 · 2 comments on HN
- 8Integrating LLMs and Emacs with Gptel1 people · 4 points · first shared 2025 · discussion on HN
- 9Emacs: Different Strokes for Different Folks1 people · 2 points · first shared 2023 · discussion on HN
- 10Cool Your Heels, Emacs1 people · 2 points · first shared 2023 · discussion on HN
- 11Even More Batteries Included with Emacs1 people · 2 points · first shared 2026 · discussion on HN
- 12A consistent structural editing interface1 people · 1 points · first shared 2023 · discussion on HN
- 13Jumping directories in eshell1 people · first shared 2024
- 14Bridging islands in emacs 11 people · first shared 2022
What HN people wrote when they linked it
jp0d · 2022-05-10
I think I found the following one a few weeks ago. Working my way through it. I'm usually a Vim user on Linux.
https://karthinks.com/software/batteries-included-with-emacs/
lvass · 2025-11-23
Definitely not it's purpose. Avy can be used to select a word, line, or region. One action is move to it. But it can also, in it's own words, copy, yank, zap to, transpose, teleport, kill, mark, ispell, org-refile, and custom actions.
https://karthinks.com/software/avy-can-do-anything/
skydhash · 2025-04-10
3. https://karthinks.com/software/emacs-window-management-almanac/
(Additional useful knowledge)
wegwerff · 2024-04-30
Uncommonly useful: I have a file with two functions that I want to not just see side-by-side, but with a diff.
`C-x 4 c' runs the command clone-indirect-buffer-other-window Now you can narrow both buffers to the two different functions (mark and C-x n n) and do M-x ediff-buffers to get a diff
See also https://karthinks.com/software/batteries-included-with-emacs/#indirect…
Also, rectangles: https://karthinks.com/software/more-batteries-included-with-emacs/#eas…
kbk · 2024-02-22
mike986 · 2024-02-05
if you use emacs:
https://karthinks.com/software/latex-input-for-impatient-scholars/
jonrubens · 2024-02-05
https://karthinks.com/software/latex-input-for-impatient-scholars/
Closest guide I’ve read and used.
luispauloml · 2024-02-05
For those wondering how to accomplish something similar with Emacs: https://karthinks.com/software/latex-input-for-impatient-scholars/
It does not cover creating figures, though.
pama · 2024-01-18
A simple Emacs imitation for eshell: https://karthinks.com/software/jumping-directories-in-eshell
celeritascelery · 2023-11-10
I am still trying to wrap my head around how this works. It sounds like it is similar to avy[1] but you use your voice instead of the keyboard? Coupled with some AST aware commands.
[1] https://karthinks.com/software/avy-can-do-anything/
srijan4 · 2023-06-22
The first part of this https://karthinks.com/software/fifteen-ways-to-use-embark/ also talks about how inverting action and object can be useful, and how Emacs's embark package makes it possible to even go back and forth between object and action as needed.
jerry1979 · 2022-10-08
Reminds me of Avy on emacs.
https://karthinks.com/software/avy-can-do-anything/
natrys · 2022-06-10
Not OP but I have switched to using rx macro for everything and I never miss regex. I miss rx instead everywhere else. Here are couple of blog posts someone might find useful:
https://francismurillo.github.io/2017-03-30-Exploring-Emacs-rx-Macro/
https://karthinks.com/software/bridging-islands-in-emacs-1/
yaantc · 2021-11-08
Something similar for Emacs, inspired by this Vim method:
https://karthinks.com/software/latex-input-for-impatient-scholars/
Not my field, but I find it interesting to see how it is possible to optimize one environment for specific tasks.
vslavkin · 2024-10-13
It's pretty easy, actually. First, install the plugin, I use this with elpaca: ``` (use-package latex :ensure nil :hook (LaTeX-mode . TeX-fold-mode) ;; I don't use a lot the fold, but it's useful (LaTeX-mode . turn-on-reftex) ;; For biblatex (LaTeX-mode . LaTeX-math-mode) ;; For inserting math symbols, altough I think cdlatex is better (LaTeX-mode . outline-minor-mode) ;; If you use outline to surf throughout the buffer ;; (LaTeX-mode . abbrev-mode) ;; If you use abbrevs (LaTeX-mode . visual-line-mode) ;; Either this or auto-fill-mode, which will return when you have more than the `fill-column` characters (LateX-mode . prettify-symbols-mode) ;; Will replace most latex math symbols with unicode :bind (:map LaTeX-mode-map ("s-a" . abbrev-mode) ("s-c" . preview-clearout-at-point) ("s-q" . LaTeX-fill-buffer) ) :custom (TeX-auto-save t) (TeX-parse-self t) (preview-auto-cache-preamble nil) ;; Setting this to t should be faster, but for me it wouldn't work with lualatex (TeX-command-extra-options "-shell-escape") ;; Use pdf-tools to open PDF files (TeX-view-program-selection '((output-pdf "PDF Tools"))) ;; I use pdf-tools to read the pdf in emacs (TeX-save-query nil) ;; Auto save without saving (TeX-show-compilation nil) ;; Hide the compilation (TeX-engine 'luatex) (reftex-plug-into-AUCTeX t) ;; I think this is redundant …
josephferano · 2023-01-08
To build on what others are saying about Emacs, if you start exploring the package ecosystem, you're going to see quite a lot of really interesting packages that are related to improving/experimenting with the UX of editing text. While I'm not endorsing anyone in particular, I think what this list does show is just how easy it is to do pretty much whatever you want in Emacs;
https://karthinks.com/software/avy-can-do-anything/
https://github.com/jyp/boon
https://github.com/clemera/objed
https://github.com/jmorag/kakoune.el
https://github.com/meow-edit/meow/
https://github.com/xahlee/xah-fly-keys
https://github.com/Kungsgeten/ryo-modal
https://github.com/emacsorphanage/god-mode
Emacs 29 also now has treesitter and LSP mode integration built-in, a compilation mode, a comint mode for REPLs, excellent file browsing packages (I use dired/dirvish), and a few other killer features.
Now, if what you truly dislike are "quirky editors", prepare yourself for a world of hurt because vanilla Emacs departs quite a bit from "modern" text editors. I struggled with this for a while, but eventually by buying into the paradigm, I now feel that when emacs tries emulating "modern" IDE features like autocompletion, LSP, and DAP UI, I feel like it's a regression, not a progression. The point here is that you might have an "idea" of what good initial UX and lack of quirks would look like, but Emacs might change the way you think.