Note that there are some explanatory texts on larger screens.

plurals
  1. POEmacs remember text selection
    text
    copied!<p>I decided that I was ready to try something new, after a few years of using gEdit for most of my coding needs, and try to learn using Emacs. I knew this would be difficult, as I have heard how complex Emacs can be, but I was lured by its power. The hardest thing has been getting used to writing ELisp in the .emacs file to change things about the editor. I can't currently do it myself, but I have found a few helpful snippets here and there to change some options.</p> <p>One thing I have been having a lot of problems with is getting Emacs to remember the text I have selected after a command. For instance, I commonly highlight a section of code to mass indent it. However, if I do this in Emacs, it will move the selected text only once before unselecting all of the text. Does anyone know a way around this?</p> <p>Anyway, I apologize for what seems to me to be an easy question, but after an hour of Google searching and looking around here on SO, I thought it was worth asking. I have a few more questions about Emacs, but I will save them and ask separately after I get this straightened out. Thanks!</p> <p>UPDATE</p> <p>A few people have asked about what mod I am using and what type of text I am entering. While I don't know much about Emacs modes, I am editing a pure text file at the moment. Something like this:</p> <pre><code>Hello, I am a simple text file that is made up of three separate lines. </code></pre> <p>If I highlight all three lines and hit TAB, I get this:</p> <pre><code> Hello, I am a simple text file that is made up of three separate lines. </code></pre> <p>This is great, however, if I use C-x C-x like some suggest below to reselect the text and hit TAB again, I get this:</p> <pre><code> Hello, I am a simple text file that is made up of three separate lines. </code></pre> <p>I hope this helps!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload