Most Popular

1500 questions
24
votes
2 answers

When are org-mode attachments preferable to file hyperlinks?

As far as I can tell, org-mode attachments solve the same problem as do file hyperlinks but in a clunkier way. In what situations would attachments be the superior solution?
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
24
votes
2 answers

Tramp mode is much slower than using terminal to ssh

I am using the Macports flavor of Emacs on OSX Yosemite, and have looked through every thread here on Tramp being slow without any solution. Tramp is usable, but there is about a 100ms delay between every action. It's not a problem on the server's…
m0meni
  • 743
  • 1
  • 6
  • 17
24
votes
5 answers

How do I change portions of a custom theme?

I'm using one of the pre-defined custom themes that come bundled with Spacemacs (zenburn). How can I modify specific portions of the theme, for example just change the font color used for comments ?
Running Turtle
  • 467
  • 1
  • 4
  • 7
24
votes
3 answers

Fixing DOuble CApitals as I type

I have a bit of a slow pinky. As my other fingers get faster and faster at typing, my pinky just can't keep up. This frequently leads me to type sentences whose first word starts with two uppercase letters. Here's a short example. THere's nothing in…
Malabarba
  • 22,878
  • 6
  • 78
  • 163
24
votes
4 answers

How to change style of hyperlinks within PDF published from org-mode document?

I'm exporting (publishing) an org-mode document to PDF, and the results look great except for the hyperlinks. They look terrible. Hyperlinks to the Web look the same, only with a pale blue outline. How can I control the style of links in the…
Sue D. Nymme
  • 1,406
  • 12
  • 13
24
votes
1 answer

How to perform case-sensitive query-replace?

When I do M-x query-replace to replace all occurrences of v by w, then it also matches V (uppercase V). How to force emacs to only find lowercase v ?
Name
  • 7,689
  • 4
  • 38
  • 84
24
votes
1 answer

How do I make the timespan shown by org agenda start yesterday?

If today is Thursday, I want the agenda to be from Wednesday (yesterday) through next Tuesday. When I set org-agenda-day to "-1d", it shows the full week (starting Monday) that contains yesterday. I want it to start yesterday, even if yesterday…
zck
  • 8,984
  • 2
  • 31
  • 65
24
votes
3 answers

How to unbind a key?

I want to get rid of the C-e binding so I can bind C-e e, and C-e r to a command. How do I do this? My init file has this: (global-set-key (kbd "C-e e") 'move-end-of-line) (global-set-key (kbd "C-e r") 'end-of-buffer)
Joshua Lilleberg
  • 371
  • 1
  • 2
  • 5
24
votes
2 answers

Difference between init and config in use-package

I have a configuration like this: (use-package html-mode :mode "\\.html\\'" :config (progn (add-hook 'html-mode-hook 'turn-off-auto-fill))) Now when I go and visit an HTML file, I observe that auto-fill is not turned off. But if I use…
Sibi
  • 3,603
  • 2
  • 22
  • 35
23
votes
5 answers

Getting number of occurrences, during incremental search (C-s / isearch-forward)

Inspired by modern browsers, I'd love to be able to see how many occurrences there are of some string, when I search for it – like the "10 of 37" at the top-right corner of the screenshot below. Is there a way of getting this in Emacs? Presumably,…
ShreevatsaR
  • 880
  • 6
  • 19
23
votes
2 answers

How to use the menu bar in terminal emacs?

I am using emacs on the remote server, and I have no idea how to click on options in the menu bar across the top in this context. Here is a screen capture: For example, I want to click some options under "File" in the menu bar (on the top), how…
lllllllllllll
  • 579
  • 1
  • 4
  • 14
23
votes
1 answer

How does one use flyspell in org buffers without flyspell triggering on tangled code blocks?

Imagine an org buffer in Emacs like: * Title Some text describing the title and the codew (sic) and whatnot. #+BEGIN_SRC emacs_lisp (setq backup-by-copying t) #+END_SRC I want flyspell to check the org buffer (and catch the spelling error in it)…
prjorgensen
  • 533
  • 3
  • 12
23
votes
1 answer

How can I quickly toggle between a file and a *scratch* buffer having the same major mode?

At times while working on a code, it's useful to quickly open a *scratch* buffer to paste a snippet from that code file. If I am working on a Perl script, I would like to quickly open a *scratch* buffer with in cperl-mode. It would also be nice to…
Kaushal Modi
  • 25,203
  • 3
  • 74
  • 179
23
votes
5 answers

Can I format cells in an org-mode table differently depending on a formula?

I have a column in an org-mode table with numbers in each cell. I'd like to change the background color of the cell to red if the number is below 1 or above 2. How can I do that?
Trevoke
  • 2,375
  • 21
  • 34
23
votes
1 answer

How to implement Markdown style link IDs in org-mode?

At times, I need to use the same link at multiple places in a long document. For those cases it would be useful to have link IDs like in markdown. From markdown syntax ref, You can optionally use a space to separate the sets of brackets: This is…
Kaushal Modi
  • 25,203
  • 3
  • 74
  • 179