top | item 45929951

(no title)

jordibc | 3 months ago

I thought about it when I read Charlie Stross getting one last year [0]. Then thought, what is essential about it? And decided to try something related, even if it was likely to be just another distraction:

  (defun full-screen ()
    (interactive)
    (shell-command "wmctrl -r :ACTIVE: -btoggle,fullscreen")
    (menu-bar-mode 0))

  (defun just-write ()
    "Convert into a big, clean, centered window."
    (interactive)
    (full-screen) (olivetti-mode) (text-scale-adjust 2) (scroll-bar-mode -1)
    (end-of-buffer) (recenter-top-bottom 0))
This is the simple "just-write" function I wrote in emacs, and it also needs the olivetti package and the wmctrl program.

To my surprise, it actually did the trick. I've written more and more pleasantly since then. I feel it's better than if I had gotten a Writer Deck or similar. So I thought I'd share in case it does the trick for anyone else.

(I also use a font and a color scheme that pleases me, but that's minor.)

[0] https://www.antipope.org/charlie/blog-static/2024/09/zen-and...

discuss

order

No comments yet.