Questions tagged [emacs]

GNU Emacs is an extensible, customizable, self-documenting text editor, which can be extended with Lisp code. Although Emacs is a general-purpose editor, questions may be on-topic here if they are about extending Emacs itself (usually by writing Emacs Lisp functions) or about specific programming modes. Otherwise (and perhaps also in those cases), consider asking your question on Emacs Stack Exchange.

GNU Emacs is an extensible, customizable text editor. Begun in the mid-1970s as a set of macros on top of TECO, it was re-written using C and Emacs Lisp to provide portability and an extendable interface. It continues to be actively developed today.

Emacs provides context-sensitive editing modes with syntax coloring, is self documenting, has full Unicode support and extensions to do almost anything. It similarly has extensive packaging support through the built-in package.el package.

Emacs' package selection includes color themes, language-specific editing modes, RSS readers, email clients, web browsers, etc. Die-hard Emacs users do almost everything from within Emacs: write, compile, run and debug code; read/compose email; browse the web; do project planning, etc. Some other editors, like Visual Studio or Eclipse, provide Emacs key bindings.

Questions about using and configuring Emacs, not specific to programming, are off-topic for Stack Overflow, but they may be suitable for Emacs Stack Exchange. Questions about extending Emacs using Lisp or other languages, or about programming modes, are usually on-topic here.

Useful Links

Wisdom from Stack Exchange

Books

17686 questions
12
votes
4 answers

running scheme from emacs

I'm a newbie to LISP. I am attempting to invoke the scheme interpreter from within emacs (version 23 running on windows). I loaded the xscheme library by telling emacs to M-x load-library and then entering xscheme at the prompt in the minibuffer.…
dave
  • 355
  • 4
  • 8
12
votes
2 answers

Emacs Haskell Mode Flymake

I've been trying to get Flymake to work with Haskell mode in emacs. I've gotten this to work in the past and I have to say the combination of Flymake and Haskell's type system is ridiculously synergistic. Now it seems I am having trouble getting…
Eric
  • 663
  • 4
  • 14
12
votes
3 answers

Maximizing an Emacs frame to just one monitor with elisp

I use maxframe.el to maximize my Emacs frames. It works great on all three major platforms, except on my dual-head Mac setup (Macbook Pro 15-inch laptop with 23-inch monitor). When maximizing an Emacs frame, the frame expands to fill the width of…
Chopmo
  • 1,416
  • 1
  • 10
  • 18
12
votes
3 answers

Setting Racket Geiser Emacs Path

I'm trying to get Geiser's REPL to work in Emacs, but it doesn't seem to be able to find Racket. racket is on my path, but anytime I type run-geiser followed by racket it complains: Unable to start REPL: Searching for program: no such file or…
Scott Klarenbach
  • 37,171
  • 15
  • 62
  • 91
12
votes
1 answer

When does Emacs Lisp's lexical-let leak memory?

I read about lexical-let's memory leak, for example here: Are there any problems with lexical-let or other cl-macros??? - Users list for the GNU Emacs text editor - ArchiveOrange It says: "Note that variables bound with lexical-let are never…
tkf
  • 2,990
  • 18
  • 32
12
votes
1 answer

How to make cases in switch statement to be indented in Emacs

How to make Emacs to indent cases like this switch ($foo) { case "foo": $foo .= " bar"; break case "bar": $foo .= " baz"; break default: $foo .= " undefined"; } instead of switch ($foo) { case…
jcubic
  • 61,973
  • 54
  • 229
  • 402
12
votes
2 answers

How to kill a remote process without killing the shell (C-c C-c also kills the shell...)

Assume you work on a remote server from a local emacs shell (started with M-x shell). If you execute a process which takes too long (for example an ls in a directory with a huge amount of files), you would like to stop that process (in the terminal…
Marius Hofert
  • 6,546
  • 10
  • 48
  • 102
12
votes
4 answers

how to run node.js interactively in Emacs on Windows

I thought this would work: (defun my-node () (interactive) (pop-to-buffer (make-comint "my-node" "node"))) But when I do M-x my-node and enter 1+1 in the comint buffer, it does not display any output. This is in Emacs 24.0.50.1 on Windows 7…
Yoo
  • 17,526
  • 6
  • 41
  • 47
12
votes
4 answers

Mapping Caps Lock to Control from within Emacs on Windows

When reading either of these questions or the EmacsWiki article about mapping Caps Lock to Control in emacs in Windows, the best answers seem to involve the registry. My question is what a user can do when they can't modify the registry of the…
Brendan Foote
  • 1,378
  • 2
  • 12
  • 22
12
votes
4 answers

Emacs To read Large Files ~14GB

Recently I have downloaded emacs on my system to edit large files as it claims. When trying opening large files, the emacs gives me a problem that buffer size is exceeded. Is there a way to increase it?! I have a system with memory of 24 GB!
Mohamad Ibrahim
  • 5,085
  • 9
  • 31
  • 45
12
votes
1 answer

Python Interpreter in Emacs repeats lines

What is happening: >>> 2 * 10 2 * 10 20 >>> What I want to happen: >>> 2 * 10 20 >>> Does anyone know why the command is printed out before being executed and how to stop it from doing that? I can't find any documentation about this. I'm using…
methodmain
  • 230
  • 2
  • 11
12
votes
4 answers

Emacs shell-mode display is too wide after splitting window

If I run M-x shell in emacs to get a terminal, it knows where to wrap lines automatically. For example, the output of ls is formatted into columns that fit the window properly. My problem is if I then split the window vertically with C-x 3,…
Tyler
  • 9,872
  • 2
  • 33
  • 57
12
votes
4 answers

Emacs hangs in haskell-mode with inferior-haskell-load-file call

When in a Haskell file, I use C-c C-l to run the command inferior-haskell-load-file which is intended to load the current file into the GHCI interpreter but Emacs just hangs until I hit C-g. Anyone know how I can get this to work? GNU Emacs 23.3.1…
Luke Hoersten
  • 8,355
  • 3
  • 21
  • 18
12
votes
2 answers

How to Configure SBCL to Use More RAM When Started Through Emacs?

How can I configure SBCL so that it uses more memory than the default when I start it by using "M-x slime" in Emacs? From what I've seen online, the answer appears to be to call SBCL, passing the argument "--dynamic-space-size ". Since…
sadakatsu
  • 1,255
  • 18
  • 36
12
votes
2 answers

How do you tell Emacs to leave the case alone in a search and replace string?

I'm trying to perform a regex search and replace in Emacs (using M-x query-replace-regexp), but the usually helpful smart case is getting in the way. My source is: One Two Three And I want to replace each line with something like
Malvineous
  • 25,144
  • 16
  • 116
  • 151