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 7531253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:07:23+00:00 2026-05-30T05:07:23+00:00

In Emacs, the line gets indented only after hitting return (in cc-mode). Is that

  • 0

In Emacs, the line gets indented only after hitting return (in cc-mode). Is that normal? Can that be changed to indent automatically when it hits a new line?

How do I look at variables, for example There are a number of predefined styles. Take a look at the variable ‘c-style-alist’ to see a list of them.?

  • 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-30T05:07:25+00:00Added an answer on May 30, 2026 at 5:07 am

    in all of my programming mode hooks i have this line:

    (local-set-key [return] 'newline-and-indent)
    

    if for example, you wanted this in all “c” like modes, you would add this to your .emacs file:

    (add-hook 'c-mode-common-hook
              (lambda ()
                (local-set-key [return] 'newline-and-indent)))
    

    Second question:

    to describe something, you would use the help command. “v” gets help on variables, so you would use: M-x help v

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

Sidebar

Related Questions

How do you tell emacs to indent the current continued line (e.g. after a
I'm trying to have C-<return> map to move-end-of-line then newline-and-indent In my .emacs I
Say I have a line in an emacs buffer that looks like this: foo
I am now using Emacs 23 with visual-line-mode turned of for text editing but
How can I copy a line 10 times easily in Emacs? I can't find
I use Cocoa Emacs 23.1.91 and I want to always have hl-line-mode turned off
What's the correct method for defining multi-line comments in an emacs mode (like C's
I'm new to the whole Emacs thing, and one of the things that gets
Emacs's auto-fill mode splits the line to make the document look nice. I need
I am having a problem with doxygen style multi-line comments with emacs indent feature

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.