(no title)
jordibc | 3 months ago
(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...
No comments yet.