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

  1. 1
    LaTeX Input for Impatient Scholars
    7 people · 70 points · first shared 2021 · 25 comments on HN
  2. 2
    Avy Can Do Anything
    6 people · 168 points · first shared 2021 · 52 comments on HN
  3. 3
    Batteries included with Emacs (2020)
    5 people · 404 points · first shared 2020 · 218 comments on HN
  4. 4
    Ways to use Embark (2021)
    4 people · 39 points · first shared 2021 · 4 comments on HN
  5. 5
    The Emacs Window Management Almanac
    2 people · 198 points · first shared 2024 · 37 comments on HN
  6. 6
    More Batteries Included with Emacs
    2 people · 4 points · first shared 2020 · discussion on HN
  7. 7
    Emacs: Fringe Matters, Finding the Right Difference
    1 people · 43 points · first shared 2025 · 2 comments on HN
  8. 8
    Integrating LLMs and Emacs with Gptel
    1 people · 4 points · first shared 2025 · discussion on HN
  9. 9
    Emacs: Different Strokes for Different Folks
    1 people · 2 points · first shared 2023 · discussion on HN
  10. 10
    Cool Your Heels, Emacs
    1 people · 2 points · first shared 2023 · discussion on HN
  11. 11
    Even More Batteries Included with Emacs
    1 people · 2 points · first shared 2026 · discussion on HN
  12. 12
    A consistent structural editing interface
    1 people · 1 points · first shared 2023 · discussion on HN
  13. 13
    Jumping directories in eshell
    1 people · first shared 2024
  14. 14
    Bridging islands in emacs 1
    1 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/
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…
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.
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
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.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close