I wish to create a function to put in my .emacs (but I am no Elisp expert) in order to perform a certain number of replacements within an Emacs buffer. In particular, I want to:
replace any occurrence of
\pnotes{*}(where*is some variable stuff, e.g.\pnotes{1.73},\pnotes{1.41}...) with\notesfollowed by a line breakdelete any occurrence of
\ast{*}(where*is some variable stuff, e.g.\ast{0.03},\ast{.70}...)replace any occurrence of
\nextvoicewith the same string preceded by a line breakreplace any occurrence of
\ibwith the same string preceded by a line break;replace any occurrence of
|with the same character preceded by a line breakreplace any occurrence of
&with the same character preceded by a line breakreplace any occurrence of
\en%with\enpreceded by a line break
How can I achieve that?