Most Popular

1500 questions
50
votes
4 answers

Restart emacs from within emacs

I restart my emacs a lot. All I want to do is create a function that kills the current emacs, only to spawn a new one in it's stead. Ideally, this would also work in a TTY.
PythonNut
  • 10,363
  • 2
  • 30
  • 76
50
votes
2 answers

how to markup a quotation?

How do I specify a quote in org-mode so that it is rendered nicely in github? In markdown it is rendered like so: Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. albert enstein thanks in advance.
ninrod
  • 1,506
  • 2
  • 13
  • 29
49
votes
6 answers

Can cursor jump back to the previous position?

Can I make my cursor in a buffer jump back to its last position? (preferrably without having to mark the previous position) For example, C-a jumps to the beginning of the current line, can I jump back to where it was before? For example, when C-x…
Tim
  • 5,007
  • 7
  • 32
  • 61
49
votes
7 answers

Tree-based directory browser?

I love dired, but sometimes (particularly when filming screencasts) I want to see the tree-structure of a directory and its children, a la the tree(1) command. Is there a tree-oriented directory browser for Emacs?
Avdi
  • 737
  • 1
  • 7
  • 8
49
votes
3 answers

org-mode link to heading in other org-file

Is there a way to link to specific topic (*) in a different org-file? How can I quickly find and copy the relative path from the current org-file to the file that I want to link to? Probably both straight forward but I couldn't figure it…
cataclysmic
  • 827
  • 1
  • 6
  • 13
49
votes
1 answer

How to make Company mode be case-sensitive on plain Text?

By default, Company mode seems to convert every prediction into lower case. E.g: HelloWorldOfGoo HelloWorldOfEmacs -> Hell [Helloworldofgoo] //Company prediction [Helloworldofemacs] This is not very practical for case sensitive…
Leo Ufimtsev
  • 4,558
  • 3
  • 23
  • 46
48
votes
5 answers

How to disable auto-indentation of new lines?

I've recently upgraded emacs to version 24.4.1 and something has changed in the indentation of new lines. When I hit enter I expect just "bare" new line character at point where cursor was present, in particular if I'm in the middle of the line,…
48
votes
12 answers

How to switch back and forth between two locations in a buffer

Sometimes I find myself frequently alternating between two functions that I am editing in conjunction with each other. In these situations, it is tedious and painful to keep on doing a C-s to switch to the other function and then to…
Vedaad Shakib
  • 583
  • 4
  • 6
48
votes
2 answers

How can I discard changes to unstaged files using magit?

Is there a way to issue the command: git checkout NameOfFile on a modified and unstaged file from within MAGIT?
user2522280
  • 929
  • 2
  • 7
  • 13
47
votes
3 answers

How to change Emacs windows from vertical split to horizontal split?

Window A ++++++++ Window B Is there a way to switch to Window A : Window B Is there a way to switch view without closing windows?
Nick
  • 4,473
  • 4
  • 26
  • 44
47
votes
1 answer

How is the GNU Emacs source code organized?

How is the source code of GNU Emacs organized? What are the main modules and their functionality? Where can I find an official, up-to-date description of the architecture and its source code?
Amelio Vazquez-Reina
  • 5,197
  • 5
  • 33
  • 47
47
votes
2 answers

Git rm from magit

This is a very basic but I have been unable to find the answer on the web. Is it possible to git rm, i.e. to remove a tracked file, from magit? Thanks
wizmer
  • 917
  • 1
  • 7
  • 9
46
votes
3 answers

How to know when or when not to use the single quote before variable names?

I have the below: (setq some-variable "less") I am confused why I have to use the single quote with boundp but not with bound-and-true-p. Example 1: (when (boundp 'some-variable) (message "some-variable is %s"…
Kaushal Modi
  • 25,651
  • 4
  • 80
  • 183
46
votes
6 answers

Show org-mode hyperlink as plain text

Although it is convenient how org-mode shows hyperlinks, there are times when I want to see the underlying plain text, e.g. [[./file.org][Title]]. How can I do this? I know about org-insert-link, but it is not what I want: C-c C-l runs the command…
David J.
  • 1,849
  • 1
  • 14
  • 24
46
votes
4 answers

The old "how to fold XML" question

I'm doing quite a bit of manual XML editing (the source definition of some code generation I'm doing is a custom XML format) and of course prefer to use Emacs over any special purpose (usually ugly) XML editors. nXml mode has stood me well in the…
Mark
  • 1,429
  • 1
  • 16
  • 21