How do you, very simply, copy a line in emacs?
I usually do ctrl k (repeating the key for multiple lines), then ctrl y back in, and then paste whereever else I want.
I want wondering if there is a simpler method to copying the line.
I can set a mark, and then do alt w, but its two commands --- is there a one
command version of ctrl k for copying a line without deleting a line?
One more query: how do write a custom command so that when I press F1, it inputs the $ symbol?
I mean I have the $ sign on the keyboard, but I have to press shift. It would simplify my life a lot if I can press one key and emacs views it as $ sign; and similarly for {, } etc.