Most Popular

1500 questions
10
votes
2 answers

How should I get the filename of the original buffer in an indirect cloned buffer?

I wanted to look at different portions of a buffer in two different frames, as I have two monitors of different shapes that I can't easily span a single frame over. Some googling led me to use clone-indirect-buffer, which works nicely. However,…
rneatherway
  • 483
  • 3
  • 11
10
votes
1 answer

How to know if emacs is running as a daemon?

I want to know if emacs is running as a daemon, so I can load some parts of my configuration according, I want to know this from within emacs.
shackra
  • 2,782
  • 19
  • 49
10
votes
3 answers

Using constants inline

How to do the following in org-mode: define a constant in the beginning of file, and than use it in the text or even compute on it. Following methods didn't work for me: Method 1: #+CONSTANTS: t=10 The temperature is `$t`, and twice of that is…
Shambho
  • 457
  • 3
  • 13
10
votes
2 answers

How to display overlay like this screencast?

How to make an overlay in Emacs like the following (maybe it's not overlay, I don't know, it's from company-coq inline-docs):
stardiviner
  • 1,928
  • 28
  • 46
10
votes
3 answers

Emacsclient: One single emacs process all the time from start up & never close & better hide GUI

Since emacsclient can handle long package loading time proerly, I really want to keep at least one emacs process, and most of the time only one emacs process, open as a background process and better hide GUI. Right now I defined the following…
10
votes
1 answer

How to customize syntax highlight for just a given mode

I would like to change the syntax highlighting in my lua-mode.el without affecting other major modes. Just as an example, I would like "key words" like if, then, else to be in bold and blue typeface when in lua-mode (instead of the default pink)…
Pier Paolo
  • 275
  • 3
  • 10
10
votes
1 answer

How to get keystrokes displayed in the echo area immediately?

How do I get keystrokes displayed in the echo area immediately? For example: when I enter the key sequence C-u j, it will not display in the echo area immediately, but then I press key k, and I discover that I was making a typo beforehand. So, I…
jimmy
  • 103
  • 5
10
votes
4 answers

Change permission of file

I use GNU Emacs 24.3.1 and want to create a new buffer and execute that directly without using terminal and chmod. Is there a way to change the permission of a saved buffer (file) directly from emacs?
hasanghaforian
  • 215
  • 4
  • 11
10
votes
1 answer

How can I turn [1..10] into [1,2,3,4,5,6,7,8,9,10] in calc?

When playing around with data in calc, I often want to generate a vector from an interval. How can I easily create a vector from just a start point, end point & step value. Something like 1 10 1 MAKE-VECTOR to give me…
Squidly
  • 1,519
  • 14
  • 18
10
votes
4 answers

Automatically formatting brackets

I'm trying to create a function that places/aligns/indents curly brackets according to Allman-style formatting (for coding in C). Generally speaking, I am fan of Smartparens' interface available to users for customizing functionality. I've…
iceman
  • 1,088
  • 1
  • 9
  • 20
10
votes
3 answers

Export Javascript source block to script tag in HTML when exporting Org file to HTML

To avoid the XY problem, let me say that what I actually want is to embed Javascript code into