Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 932905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:44:41+00:00 2026-05-15T20:44:41+00:00

I decided that I was ready to try something new, after a few years

  • 0

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.

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?

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!

UPDATE

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:

Hello, I am a simple text file
that is made up of three separate 
lines.

If I highlight all three lines and hit TAB, I get this:

    Hello, I am a simple text file
    that is made up of three separate 
    lines.

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:

        Hello, I am a simple text file
            that is made up of three separate 
                lines.

I hope this helps!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:44:42+00:00Added an answer on May 15, 2026 at 8:44 pm

    Try typing C-x C-x after Emacs unselects it.

    Then, instead of hitting tab (I never knew that tab does what you said! That’s totally whacked.), do M-8 C-x C-i. Pity it’s so many keys, but it ought to do what you want — namely, shove everything over 8 columns. Obviously replace the M-8 with something else if you want some other number of columns.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've decided that I am going to try and learn backbone.js by making a
I recently decided to try jQuery 1.4, excited that I would finally have support
I have a class that had an inline member, but I later decided that
Can somebody explain why the .Net framework team decided that a delegate without subscribers
Update: Last night, I decided that this is just too much work to change
I'm programming an agent-based simulation and have decided that Boost's MultiIndex is probably the
In the end, I have decided that this isn't a problem that I particularly
We're in the initial stages of a large project, and have decided that some
I am implementing some networking stuff in our project. It has been decided that
Somewhat similar to this question , except we haven't decided that we're going with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.