Skip to content

Instantly share code, notes, and snippets.

@zeroflag
Last active November 8, 2025 21:48
Show Gist options
  • Select an option

  • Save zeroflag/f05989c3fbda63381da3d306f23d22c3 to your computer and use it in GitHub Desktop.

Select an option

Save zeroflag/f05989c3fbda63381da3d306f23d22c3 to your computer and use it in GitHub Desktop.
(setq fixed--text (string-to-list "
$QQQ\t100\t*\t?
$SCHD\t260\t*\t?
$SBUX\t400\t*\t?
$SPY\t600\t*\t?
$SPG\t160\t*\t?
SUM .
"))
(defun type--fixed (&rest _args)
(if fixed--text
(progn
(insert (char-to-string (car fixed--text)))
(setq fixed--text (cdr fixed--text)))
(advice-remove 'self-insert-command #'type--fixed)))
(advice-add 'self-insert-command :override #'type--fixed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment