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

  • SEARCH
  • Home
  • 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 8776091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:58:03+00:00 2026-06-13T18:58:03+00:00

I am in the process of learning both RoR and Emacs, a process that

  • 0

I am in the process of learning both RoR and Emacs, a process that I happily expect to take up the rest of my lifetime, and my basic strategy is to start with a simple set of tools and then fill up my tool chest as I go along.

To that end, I don’t want to install Rinari or nXhtml just yet, but I would like at least basic syntax highlighting and indentation in the various Rails files. I also don’t want to use a emacs.d “starter kit” since another goal of mine is to understand every line of my Emacs configuration, and keep in nice and clean and free of cruft.

Problem is that it seems that many files in rails, like Gemfile use ruby syntax, but don’t use the .rb suffix, e.g., Gemfile, so I have to turn on ruby-mode for each file that I encounter. This doesn’t seem like the Emacs way.

I was thinking that there must be a map out there of Rails files and the modes they use out there that I can easily plop into my config, but I can’t seem to find it. Does anyone have any suggestions?

  • 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-06-13T18:58:04+00:00Added an answer on June 13, 2026 at 6:58 pm

    Ruby-mode file associations:

    (add-to-list 'auto-mode-alist '("\\.\\(rb\\|ru\\|builder\\|rake\\|thor\\|gemspec\\)\\'" . ruby-mode))
    (add-to-list 'auto-mode-alist '("\\(rake\\|thor\\|guard\\|gem\\|cap\\|vagrant\\)file\\'" . ruby-mode))
    

    Editing modes for other types of files:

    erb templates – rhtml-mode

    haml templates – haml-mode

    slim templates – slim-mode

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

Sidebar

Related Questions

I'm in the process of learning RoR, and I'm liking everything that I'm discovering
I'm in the process of learning C++. But there's so much more that I
I'm in the process of learning Objective-C and I've read that I should be
I am in the process of learning the MVC pattern in practise, meaning that
Im the process of learning C++. I got stuck debugging some of my code
On the process of learning Assembly i got one question If i do the
I'm in the process of learning Databases and SQL. From what I have read
I am in the process of learning about big oh notation. For the code
I'm in the process of learning jQuery and the tutorial I'm following uses Dreamweaver
I am in the process of learning how to use SWIG on Windows. The

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.