![]() (copy-thing 'backward-word 'forward-word arg) "Paste things to mark, or to the prompt in shell-mode."Ĭopy Word ( defun copy-word ( &optional arg) ( let ((beg (get-point begin-of-thing 1)) "Copy thing between beg & end into kill ring." ( defun copy-thing (begin-of-thing end-of-thing &optional arg) the base functions ( defun get-point (symbol &optional arg) Killing next word or sexp can be done with C-M-SPC C-w, or better with C-M-k. If you want to select the next two words after point, just type C-M-SPC C-M-SPC M-w. You can select word or sexp after point and put it in the kill-ring by typing: C-M-SPC M-w Selecting words or sexps without moving the cursor If it is used in shell-mode, stuff will be pasted at end of shell prompt.Īnd besides, there are also something to do with some basic shortcuts. The following functions will copy the word, the line, the paragraph and the string and the Parenthesis at point, and will paste them to the mark. It gave me a new idea, that Emacs would even paste for me. The simplest way to do this is just to put your point on the stuff and GNU Emacs will take over all the others.Īs time went on, I do a lot of daily work in shell-mode. So I decided to leverage GNU Emacs to do it for me. Because selecting what you want accurately is the most time-consuming. It’s pretty boring to copy and paste so much stuff all the time. ![]() So I used to copy and paste stuff between them. So there must be some kind of non-Emacs programs, such as Microsoft Word, Excel, Lotus Notes and so on. Some years ago, I ran GNU Emacs in Cygwin on a Windows machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |