Silly little bit of #elisp for #emacs task
I'm writing solutions to an assessment where the template is alreay provided. I want to quickly insert a solution block. I'll likely never need to use this template again, so I'm not going to make a snippet. So I spent about 20 seconds writing a little lisp to do it. Probably spent more time writing this toot 😊
(defun pab/soln ()
"Insert bullshit solution text."
(interactive)
(insert "\\ifanswers
\\textbf{SOLUTION}
\\else
\\fi
"))
(keymap-local-set "C-c s" #'pab/soln)




