Most Popular

1500 questions
30
votes
2 answers

New line in Title of an org-mode exported html document

I use org-mode to document stuff and usually export it to pdf (via latex) and html. If the \\ characters are at the end of a line, it forces a newline character when exporting to both pdf and html. But I would like to know how to force a newline…
Kaushal Modi
  • 25,651
  • 4
  • 80
  • 183
30
votes
1 answer

How to distinguish C-i from TAB?

Normally, for historic reasons, emacs treats the TAB keycode and the C-i key as the same, cf. the emacs lisp documentation on function keys or abo-abo's answer on the question "What is the difference between TAB and ?". NOTE: In this post, keycodes…
elemakil
  • 2,527
  • 1
  • 19
  • 26
30
votes
1 answer

Can I export a specific table in an org file to csv from the command line?

I have an org file with multiple tables $ cat ~/foo.org #+Title: hello world * section 1 lorem ipsum #+TBLNAME: first-table | i | want | to | | export | this | table | #+TBLNAME: second-table | this | table | is | | not | as …
Brian Fitzpatrick
  • 2,325
  • 1
  • 20
  • 42
29
votes
1 answer

How to highlight text permanently in org-mode

I know I can use *bold*, /italic/, _underlined_, =verbatim= and ~code~, and, if you must, ‘+strike-through+’ to do some markup to text according to org-mode documentation, but they are not enough for me(bold is not obvious when viewing the org…
CodyChan
  • 2,649
  • 1
  • 21
  • 35
29
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,506
  • 2
  • 13
  • 29
29
votes
2 answers

How to reset color theme?

When I'm trying different color themes out, it seems if a particular element is not defined in the new theme the old theme value is retained, and this leads to some clashing. This happens in emacs 24 and also previous versions using color-theme. Is…
hatmatrix
  • 1,086
  • 2
  • 9
  • 18
29
votes
3 answers

Match two spaces with incremental search

When searching using: C-s SPC SPC Also matches single spaces. I want to match exactly two space.
Rovanion
  • 987
  • 7
  • 20
29
votes
4 answers

How to auto-save buffers when Emacs loses focus?

I recently had a Sublime Text user try out Emacs for a while, and he was interested in getting the same auto-save behavior in Emacs. Basically, he wanted all buffers to be saved whenever the frame lost focus (really saved, not just backed-up). This…
b4hand
  • 2,015
  • 1
  • 21
  • 31
29
votes
12 answers

Organize the content of ~/.emacs.d/init.el and ~/emacs.d?

When we add more and more lines into ~/.emacs.d/init.el for various purposes (for python-mode, for emacs-eclim, for ...), the file becomes lengthy and less readable. Is there a way to help organize its content? My current ~/.emacs.d looks like…
Tim
  • 5,007
  • 7
  • 32
  • 61
29
votes
3 answers

When/why should I use progn?

I have seen progn being used quite a lot as I browse the configuration files of experienced Emacs users. I found this nice explanation of progn, but what I am really curious about is, what is the benefit of using this function? Take for example this…
elethan
  • 4,825
  • 3
  • 30
  • 56
29
votes
2 answers

How to clear a cell in an org-mode table?

Is there a built-in command to delete the contents of a cell in a single keystroke within an org-mode table? Note, I don't want to delete the row, just the cell contents. | some text | ==> | | If not, how would you write this?
wdkrnls
  • 3,707
  • 2
  • 28
  • 46
29
votes
1 answer

org mode table row number grow automatically?

recently I am using table to do some statistics, and I want the first column of the table to indicate the row number, as this. | | title| |--| -----| | 1| A | | 2| B | and I want the number of first column grow automatically…
Luis404
  • 521
  • 5
  • 7
29
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
  • 818
  • 7
  • 20
29
votes
3 answers

Extending org-mode with more markups

I want to add a markup and formatting for such markup, i.e. ... with a box surrounds such markup. I also want the mark up to be compatible with (setq org-hide-emphasis-markers t). That is, when the variable is set to t, the and…
Tu Do
  • 6,812
  • 21
  • 39
29
votes
4 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
  • 517
  • 4
  • 10