Most Popular
1500 questions
23
votes
2 answers
How to checkout ours/theirs on a file in magit?
Let's say I have a merge conflict. I see a conflicted file like this:
Unstaged changes:
Unmerged Foo/bar/wibble/plop/elbow.txt
I can hit tab here to open the changes and maybe jump to a point inside the file to fix by hand, but if it's a big…

tenpn
- 395
- 2
- 14
23
votes
1 answer
What algorithm does sort use?
I need to add a single integer to a list that's already sorted, such
that it goes in the right place. My first tought was something like
(sort (cons newelt list) #'<)
However, given that list is already sorted, only one insertion is
really needed,…

Malabarba
- 22,878
- 6
- 78
- 163
23
votes
2 answers
Difference between load-file and load
I went through the documentation of both the function but they don't seem to shed much information. What is the actual difference between them apart from the fact that load is a built-in function in C source code whereas load-file is an interactive…

Sibi
- 3,603
- 2
- 22
- 35
23
votes
5 answers
Does emacs have a process viewer (resource manager) or equivalent?
Occasionally emacs will hit 100% cpu usage. Obviously when this occurs there is an issue with a runaway process.
Just wondering if there is a way to view all running processes in emacs?
Kind of like unix htop, the interactive system process…

orion
- 805
- 8
- 16
23
votes
2 answers
What was Emacs like back in the 80s?
I've looked all around for footage of ancient Emacs distributions, but to no avail.
The source code for Emacs 16.56 from July 15, 1985 is available on Github, but under no circumstances could I manage to build it.
The original Stallman Emacs paper…

Daniel
- 3,563
- 16
- 41
23
votes
1 answer
How to export top-level headings of org-mode buffer to separate files?
How can each top-level heading of an org-mode buffer be exported to a separate file named after the value of the corresponding CUSTOM_ID + (sanitized) title?
Let's say a buffer contains:
* Title of Heading 1
:PROPERTIES:
:CUSTOM_ID:…

gsl
- 1,742
- 17
- 34
23
votes
2 answers
set-mark-command (C-SPC) not recognised/broken
I would like to know how to start troubleshooting the following:
C-SPC is not doing anything.
It's not appearing in the mini-buffer when I type it but when I look at M-x set-mark-commandit's showing as bound to C-SPC.
Environment
I've installed GNU…

m__
- 923
- 1
- 7
- 12
23
votes
3 answers
Is there any SMIE documentation that is clear?
I've spent many, many hours now trying to get any sort of SMIE indentation rule/grammar/thing working.
Are there any examples of a small, toy or skeleton SMIE-based mode with documentation on how it actually works, or any discussion anywhere about…

Nagora
- 373
- 1
- 9
23
votes
6 answers
How to delete the first few n chars of every line?
I recently asked:
How to add a prefix to every line?
So go from the code below:
I said Hello
I said There
I said I am some code
To code like:
Hello
There
I am some code
Now, how do I delete n number of characters from a line?

programking
- 7,064
- 9
- 41
- 62
23
votes
1 answer
In Emacs, where is ispell's personal dictionary stored?
In Emacs, where is ispell's personal dictionary stored?, the documentation http://www.gnu.org/software/emacs/manual/html_node/emacs/Spelling.html says
Your personal dictionary is specified by the variable ispell-personal-dictionary. If that is…

qazwsx
- 569
- 3
- 12
23
votes
3 answers
Label and reference LaTeX equations in org-mode
This is similar to Org export to latex and HTML references, but for equations.
I like to use LaTeX math snippets in my org-files, as in
* The Quadratic Equation
The roots of $ax^2 + bx + c$ are given by
\begin{equation}
\label{eq:1}
x = \frac{-b…

Kevin
- 534
- 1
- 5
- 15
23
votes
2 answers
Exporting org file breaks when upgrading to orgmode 8.3
My orgmode was recently updated to the recent 8.3, and I found that I can't export my init.org file as HTML any more.
I'm getting the following output in *Messages* buffer:
org-babel-exp process emacs-lisp at line 34...
org-babel-exp process…

john2x
- 429
- 3
- 9
23
votes
3 answers
Suitability of Emacs as a Java development IDE
I'm making yet another attempt to convert over to Emacs. I'm a decent Vi user but have been using Eclipse for most of my development work for the past 10+ years (has it been that long).
So I did some reading up and thought that JDEE is the way to go…

user1172468
- 1,027
- 2
- 9
- 8
23
votes
3 answers
How to display the content of minibuffer in the middle of the emacs frame?
When working on a maximized Emacs frame, having the content of the minibuffer / echo area display at the bottom of the screen can be hard to see, but also causes to lose focus on the text being edited when typing a command – which is quite an issue…

Sébastien Le Callonnec
- 1,087
- 11
- 21
23
votes
4 answers
How to indent keywords aligned?
Probably influenced by Clojure, I more often use property lists as data-structures. Emacs most of the time indents them like this,
`(:token ,token
:token-quality ,quality) ,
while this is what I would prefer
`(:token ,token
…

politza
- 3,316
- 14
- 16