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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:48:16+00:00 2026-06-01T16:48:16+00:00

When using emacs for writing erlang source code, I have made the following configuration.

  • 0

When using emacs for writing erlang source code, I have made the following configuration.
In the emacs, 6 windows are open at the same time, 4 windows for source code writing, 1 windows for terminal shell, 1 windows for erlang shell.

After one source code modification, I have use command "m-x ter” to switch “terminal shell”, then using “m-p” for recovering last history command, then pressing “enter” to run.
Then using “c-x, left ” to switch to erlang shell, then press m-p to repeat last command.

The above two switch process seems a little long, could you have better solution?

  • 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-01T16:48:18+00:00Added an answer on June 1, 2026 at 4:48 pm

    The compile function is the general mechanism for such things, and the compile-command variable tells it what to do (as a shell command to run).

    By default, the command is make, so if you have a Makefile, you’re already sorted.

    If not, and writing one isn’t appropriate, then you can customise compile-command for your files, perhaps using local variables.

    File-local variables for this purpose are covered in the linked Q&A.

    You can also use Directory-local variables if you want it to automatically apply to all files under a given directory.

    Or if there’s a general pattern which can be applied to all erlang files, everywhere, then you might set up compile-command using the erlang mode hook.

    Finally, you can just supply the command on demand. Called interactively, M-x compile prompts you for the command to run, and uses the previous command as the default for the next time.

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

Sidebar

Related Questions

So I wrote the following code in linux(Ubuntu) using the emacs text editor it
I'm running emacs 23.4 on OSX, obtained from emacsformacosx.com. I'm writing matlab code, using
I am using emacs 24 on Windows 7 and have installed technomancy's clojure-mode along
We are using Emacs on Sun OS 5.9. I wrote the exact same code
I am using GNU/Linux (Ubuntu + Gnome). I have been using netbeans on windows
I have started using emacs org-mode recently to maintain my TODO lists. I have
I'm using emacs for python, and I'd like to have a nice useable shell
I'm using Emacs 22.3.1 on windows. C-a is not working. (Left Control-A is working,
I am a fairly new user of R and have started using Emacs Speaks
gcc 4.4.2 cmake 2.6 I have just started using cmake. Coming from writing my

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.