Most Popular

1500 questions
36
votes
3 answers

What are the major features planned for GNU Emacs 25?

I attempted to install Emacs 24.4 through homebrew with the following command: brew install emacs --HEAD --use-git-head --cocoa --with-gnutls It ended up installing (a development build toward what might become) Emacs 25. I haven't been able to…
Connor
  • 1,591
  • 1
  • 19
  • 26
36
votes
5 answers

Is there a way to use query-replace from grep/ack/ag output modes?

I'm aware of find-grep-dired, marking the corresponding files and then pressing Q to run dired-do-query-replace-regexp on the marked files. Unfortunately that requires restarting the grep and no longer using git-grep, ack, or ag and switching to use…
dgtized
  • 4,169
  • 20
  • 41
35
votes
2 answers

How can I see the changes made to a modified buffer since the last save?

Given a modified buffer, how can I diff it with the file backing it on disk to see what I've changed?
nosefrog
  • 795
  • 6
  • 9
35
votes
3 answers

Is there an Emacs mode which highlights differences from the committed version?

One feature that Xcode has which I think is pretty neat is a "Comparison" mode, which continually shows differences between the current buffer and the most recent commit. Is there anything like this for Emacs? I don't really care about the…
Ken
  • 351
  • 3
  • 3
35
votes
3 answers

Proper way to enable minor mode

I have foo-mode and would enable bar-minor-mode for it. So which way is more common and preferable? A (add-hook 'foo-mode-hook 'bar-minor-mode) B (add-hook 'foo-mode-hook (lambda () "Turn on `bar-minor-mode' mode." …
Netsu
  • 555
  • 1
  • 5
  • 9
35
votes
4 answers

When to sharp-quote a lambda expression?

Q: When, if ever, is it useful to sharp-quote a lambda, and when, if ever, must we not sharp-quote a lambda? People use lambdas in three ways: plain: (lambda (x) x) quoted: '(lambda (x) x) sharp-quoted: #'(lambda (x) x) This SO thread discusses…
Dan
  • 32,584
  • 6
  • 98
  • 168
35
votes
4 answers

How to switch off the sounds?

Those sounds all the way drive me crazy, but it is uncomfortable to switch off system sounds at all because I need them in other places same time. I didn't find any settings where I could manage the sounds.
Anna Leonenko
  • 453
  • 1
  • 4
  • 7
35
votes
3 answers

ESS plot directly to an Emacs buffer?

Q: how can I get ESS (R) to plot directly to an Emacs buffer? When interacting with R through ESS, R defaults to spawning a separate graphics window outside of Emacs to draw its plots. (One can, of course, choose other graphical devices, which is…
Dan
  • 32,584
  • 6
  • 98
  • 168
35
votes
2 answers

package-initialize: wrong type argument : arrayp , nil

while going through the emacs as a c/c++ editor , I came across the following lines of code to include in my ~/.emacs file, to connect to melpa archives for package installation (require 'package) (add-to-list 'package-archives '("melpa" .…
lazarus
  • 453
  • 1
  • 4
  • 8
35
votes
2 answers

Reverse a hunk in Magit 2.1.0

I just upgraded to magit 2.1.0. (And also to emacs 25.0.50 and git 2.3.1.) Previously, in the *magit* buffer I could: Select a hunk in the Unstaged area. Type v and answer yes to reverse it. This was handy. But now in magit 2.1.0 it gives an…
Greg Hendershott
  • 1,483
  • 12
  • 17
34
votes
1 answer

Why do regular expressions created with the regex builder use syntax different from the interactive regular expressions?

So, using the regular expression builder (M-x re-builder), finding lines that end in \ takes "\\$", while in search and replace by regex, it only takes "\$". I would have expected the regex builder to build directly usable expressions, so what…
user2699
  • 2,181
  • 16
  • 32
34
votes
3 answers

Wrap cell content in an org mode table

I have a table like this: | Verse No | Verse | | | <10> | | 1 | line1 li=> | | 2 | line2 li=> | I would like to view it as | Verse No | Verse | | | <10> | | 1 | line1 line | | |…
user2740
  • 539
  • 1
  • 5
  • 10
34
votes
5 answers

Emacs won't load theme on startup

I've installed the solarized theme package via MELPA. I can select one of the two solarized themes via `customize-theme and it activates it. When I save the theme settings it adds the following to my init.el file: (custom-set-variables ;;…
user2249626
  • 661
  • 1
  • 5
  • 6
34
votes
6 answers

Opposite of fill-paragraph

Emacs has the function fill-paragraph. Is there any function which will do the opposite of that? I have a paragraph which is already filled and instead I want it in a plain single line?
Sibi
  • 3,603
  • 2
  • 22
  • 35
34
votes
6 answers

Running spacemacs alongside regular emacs: how to keep a separate .emacs.d

I would like to try spacemacs. But I don't want to switch from my regular emacs configuration just yet, so I would like the configuration that's currently in my .emacs.d to be in one directory, and the equivalent configuration for spacemacs to be…
Croad Langshan
  • 3,192
  • 14
  • 42