Most Popular

1500 questions
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,046
  • 9
  • 18
29
votes
1 answer

Synchronized scrolling in two windows

Is there a way to reflect the navigation commands in the current window in another visible window. I have two related LaTeX files displayed in two windows and would like to scroll through them simultaneously to get an overview of the differences. I…
Vamsi
  • 3,916
  • 22
  • 35
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
  • 975
  • 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
  • 1,995
  • 1
  • 19
  • 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
  • 4,987
  • 7
  • 31
  • 60
29
votes
2 answers

Can functions access their name?

In C there is the magic variable __func__ that holds the current function name. In Bash, there is an array FUNCNAME holding the names of all functions in the calling stack !!! Is there a similar thing in Emacs Lisp? Or any simple way for a function…
phs
  • 1,095
  • 6
  • 13
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,755
  • 3
  • 29
  • 56
29
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,265
  • 1
  • 17
  • 40
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,657
  • 2
  • 27
  • 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
  • 511
  • 5
  • 7
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,772
  • 20
  • 39
29
votes
4 answers

Smooth (mouse) scroll for inline images?

I display images in-line with begin_src & result blocks. However, for large-images, when I scroll past the bottom of the image, I get a 'jerk' and the whole image is scrolled away. Similarly if I scroll up and run into an image, I get a jerk and see…
Leo Ufimtsev
  • 4,488
  • 3
  • 22
  • 45
28
votes
7 answers

Is there a simplified version control system appropriate for non-coders writing in Emacs?

I an academic and I love to do as much of my writing as possible in Emacs. A key thing that is missing for me is the ability to easily review the changes I have made to a text file over time. The tracking features on Wikipedia articles or Google…
Brian Z
  • 2,863
  • 16
  • 22
28
votes
2 answers

Add operating system clipboard to kill ring

Often I find myself copying a code snippet into my operating system's clipboard from the internet. Then, I take the following simple steps: Switch to my Emacs window Find the place where I want to paste the code Use C-y (yank) to insert the copied…
nispio
  • 8,175
  • 2
  • 35
  • 73
28
votes
3 answers

How to make Emacs render HTML without having to save the file?

If you have ever used JS Bin, you know that as you type your code (HTML, CSS, Javascript) on the right is updated to fit what you typed. I have found this to be one of the most useful tools for making little code snippets. However, I would like the…
programking
  • 7,064
  • 9
  • 41
  • 62