Skip to content

Instantly share code, notes, and snippets.

@ckopsa
ckopsa / chatgpt-spell-check.el
Last active September 21, 2024 13:45
Uses chatgpt-shell to make spelling and grammar fixes
(defun chatgpt-shell-check-and-correct-paragraph ()
"Check and correct the current paragraph using ChatGPT."
(interactive)
(let* ((bounds (bounds-of-thing-at-point 'paragraph))
(start (car bounds))
(end (cdr bounds))
(original-text (buffer-substring-no-properties start end))
(point-offset (- end (point))) ; Save the offset of point from end
(checked-text (chatgpt-shell-check-paragraph original-text)))
(when checked-text
@julianxhokaxhiu
julianxhokaxhiu / README.md
Last active September 26, 2024 21:22
Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Step 1

Install required dependencies

$ pacman -S avahi pulseaudio-zeroconf

Step 2