Most Popular

1500 questions
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

Good methods for setting up alarms (audio + visual) triggered by org-mode events?

I would like to have alarms set off based on org-mode events associated with specific times (or start times). Ideally these would be audio and visual, and able to be customised to some extent. I used to use Sauron, but I can't get it to work with…
emacsomancer
  • 1,011
  • 1
  • 9
  • 16
49
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
  • 939
  • 2
  • 7
  • 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,488
  • 3
  • 22
  • 45
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
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,243
  • 2
  • 29
  • 75
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
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,157
  • 4
  • 32
  • 47
46
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,423
  • 4
  • 24
  • 41
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,409
  • 1
  • 15
  • 20
46
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,436
  • 2
  • 13
  • 28
46
votes
2 answers

Why does elisp not have namespaces?

Q: Why does elisp not have namespaces, and how could we get them? Elisp does not have namespaces other than the global one, which has led to the coding convention of prefixing all global functions, variables, and constants with a unique…
Dan
  • 32,584
  • 6
  • 98
  • 168
46
votes
7 answers

How can I use my local Emacs client as the $EDITOR for remote machines I access over TRAMP?

I often use TRAMP to manage several remote servers, both for editing files and running remote shells in shell-mode. However, this does not work when a command uses the EDITOR variable to edit a file, such as crontab -e especially because shell-mode…
Tikhon Jelvis
  • 6,152
  • 2
  • 27
  • 40
46
votes
6 answers

How can I set default font in Emacs?

I can't set Inconsolata as default font in Emacs 24.4 Linux. I changed the font in the menu -> Save options. The font changed but after a restart the font is the same as it was by default. Added this to ~/.Xresources: Emacs.font: Inconsolata…
Maglight
  • 643
  • 1
  • 5
  • 6
46
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
  • 797
  • 1
  • 5
  • 13