Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Parinfer – a simpler way to write Lisp. Parent comment
This makes it even better:
(defun my/lisp-dedent-adjust-parens () (interactive) (save-excursion (x4-smarter-beginning-of-line) (call-interactively 'lisp-dedent-adjust-parens))) (defun my/lisp-indent-adjust-parens () (interactive) (save-excursion (x4-smarter-beginning-of-line) (call-interactively 'lisp-indent-adjust-parens))) (local-set-key (kbd "<M-left>") 'my/lisp-dedent-adjust-parens) (local-set-key (kbd "<M-right>") 'my/lisp-indent-adjust-parens)
There are no comments on this comment yet.
This makes it even better:
Now you can just M-left and M-right to adjust the indentation of any line, regardless of where the point is, and adjust-parens fixes the parens for you.