I've only just started with Emacs (about 6 weeks now) so I'm not really familiar with its coding language. I was wondering if it was possible to write, for Emacs, the equivalent of a Python macro I have in my Sublime Text setup.
In Sublime Text, I have a Python macro which can transform selected lines of text. If I select the lines
foo bar baz
and press my chosen shortcut
C-l C-s the text is transformed to
['foo', 'bar', 'baz'].
I was wondering how to could do this for Emacs.