From the documentation of query-replace: [...] In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. ...
In emacs/orgmode there is something called refile. you select text, hit refile and you get a list of your outline headlines, select one and your text goes there. Can I achieve something like this in ...
Suppose I have this text: RUN_ RUN_ RUN_ RUN_ RUN_ and want this one: RUN_A RUN_B RUN_C RUN_D RUN_E I would like to be able to write ABCDE and somehow `transpose' it and kill-yank it as a ...
I need to read one C++ head file which has some Chinese and was encoded using utf-8. Emacs should recognize this encoding, but it turns out: Then, I changed it to text-mode, it works: I also ...
I would like to open the file foo.bar twice (or more) in emacs, so I can edit two different parts of it simultaneously. Is it possible? Probably the better question is, how to do it? Is there a way to ...
I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces? Ideally I'd like something that's not context sensitive (eg. ...
How I can prevent Emacs from saving my buffer when it contains syntax errors ? It would by especially useful for editing source code. I'm writing some source code into the buffer, hit C-x C-s and ...
I'm looking for a solution to how to perform a search and replace in all files in a directory using Emacs.