Most Popular

1500 questions
28
votes
3 answers

What are the options to play music from within Emacs?

I have a bunch of music (.mp3) files on my disk, and I would like to play them from within Emacs. I tried EMMS, but it seems rather bloated. I'm curious about other possibilities, with comparison of features. In particular, I am interested in…
mbork
  • 1,647
  • 1
  • 13
  • 23
28
votes
8 answers

how to jump directly to an org-headline?

If I'm in an org file, I want a command that narrows a candidate list, in ivy/helm style, comprised of all org headlines in the file and lets me choose the headline, through fuzzy searching, to which I want to jump to. Is there a way to do that?
ninrod
  • 1,436
  • 2
  • 13
  • 28
28
votes
1 answer

How to strip decorations (text properties) from a string?

By a "decorated string" I mean something like #("foo" 0 4 (fontified t face font-lock-function-name-face)) ...as opposed to the "plain string" "foo" (If Elisp code reads a string directly from a buffer, it may be decorated like this.) What's the…
kjo
  • 3,145
  • 14
  • 42
28
votes
9 answers

Emacs on a tablet?

Q: can Emacs be installed/used on a tablet with a minimum number of tears? I had been under the assumption that Emacs ran on basically everything. However, after some poking around, it looks like running Emacs on a tablet could be an enormous…
Dan
  • 32,584
  • 6
  • 98
  • 168
28
votes
5 answers

How can I get fuzzy code completion

When using ReSharper in Visual Studio symbols can be auto-completed using fuzzy matching instead of prefix matching. For example if I'm looking for a function named DoSomethingAmazing I could write DoSoAm and it would try to expand my query to match…
Jake Woods
  • 383
  • 3
  • 6
28
votes
1 answer

What are all the ways of launching a shell from inside emacs and what are their various properties?

I know of at least four possibilities: eshell term ansi-term shell What's the complete list of tools built-in to emacs to launch a shell, and what benefits and drawbacks do they offer?
Trevoke
  • 2,375
  • 21
  • 34
28
votes
2 answers

What are overlays for, and how do they differ from text properties?

The manual states: You can use overlays to alter the appearance of a buffer's text on the screen, for the sake of presentation features. From its name, it suggests it can be used to create “layers” over existing text, but the description above…
28
votes
5 answers

Different indentation styles for different projects

I work on many different C projects with unique indentation styles. How do I get Emacs to do per-project indentation settings without polluting the upstream project trees with .dir-locals.el files? I want to match the projects using their paths on…
artagnon
  • 2,237
  • 1
  • 15
  • 17
28
votes
2 answers

How to change the frame title from `emacs@host` to visited file name

I am using Emacs 24.5.1 on OpenSUSE Tumbleweed, with Gnome 3.16, and the title of the GTK window with Emacs in it is always emacs@hostname. How can I change it to the name of the current file I'm editing?
Sean
  • 383
  • 3
  • 5
28
votes
1 answer

Choose files to stage of a new directory with magit

If you create a new directory, its files won't show up with magit-status, only the new directory is in the list of Untracked items. Currently I have to magit-stage-item the new directory and then remove unwanted files from the stage area. Is there…
marcanuy
  • 798
  • 6
  • 20
28
votes
3 answers

Org Mode link to open directory in Dired

I'd like to have a link like [[file:~/projects][Projects]] open directly in Dired rather than Finder (I'm on a Mac), which is what it does now. Is there a way? (Of course there's a way. It's Emacs.)
JohnJ
  • 507
  • 4
  • 10
27
votes
2 answers

How to make yasnippet and company work nicer?

In my emacs, let's say, I use a "elisp" yasnippet to extend a lisp block in org-mode. But before I extend it, company is triggered first, which gives me a menu like "1. elisp1, 2. elisp2" without an option "elisp". Now if I use tab to extend…
Leu_Grady
  • 2,420
  • 1
  • 17
  • 27
27
votes
2 answers

How can I list available tags in Magit?

I would like to list the available tags in Magit in order to diff a specific revision, is this possible? Specifically what I am after is to list the revision history at a certain tag and then view the diff for one of the patches in its history. I…
David Holm
  • 1,179
  • 1
  • 10
  • 10
27
votes
2 answers

How to show a diff between two buffers with "character-level" diffs

When two buffers are compared for differences, M-x ediff-buffers does not indicate the specific characters that have changed within a word (ie "character-level" diffs). Most modern diff tools will show the diffs within a word. Emacs seems to be…
modulitos
  • 2,432
  • 1
  • 18
  • 36
27
votes
2 answers

What's the fastest way to reload my .emacs file when I make changes so all my affected buffers will pick up those changes?

I'm aware of C-x C-e which is eval-last-sexp and M-x eval-buffer, but these aren't always sufficient to pick up all changes. Sometimes you need to actually close buffers that are in the modes who have had their configuration changed, and other times…
b4hand
  • 1,995
  • 1
  • 19
  • 31