Most Popular
1500 questions
10
votes
2 answers
How to build Emacs master branch (aka trunk) on MS-Windows
I took the plunge today and started out on my quest to build the most recent Emacs master branch developer build -- aka Emacs Trunk -- for MS-Windows.
I found an old blog and went through the procedure, only to be met with an error message telling…

lawlist
- 18,826
- 5
- 37
- 118
10
votes
2 answers
How to set emacs frame size by pixels
I can resize the emacs frame to whatever size by mouse, is there a way that the frame size be set in init.el by pixels? Or anything similar in the window manager?

godblessfq
- 1,177
- 8
- 21
10
votes
3 answers
Expand org-mode subtree with point after ellipsis?
I love org-mode, but one of the things that has always bugged me is that, if the point is after a collapsed subtree's ellipsis, pressing TAB doesn't expand it. For example, if the point is here (represented by |):
* Grandiose Plans
** Save the…
user3871
10
votes
1 answer
How to turn off `emacs-lisp-checkdoc` of flycheck when edit source block in org-mode file?
I have a emacs-lisp block in org-mode and when I try to edit it by press C-c ', flycheck always report errors as below:
0 warning The first line should be of the form: ";;; package --- Summary"... (emacs-lisp-checkdoc)
0 warning …

Enze Chi
- 1,410
- 12
- 28
10
votes
2 answers
How to set temporary halt after C-x C-c?
If I run C-x C-c in emacs, it will close immediately. If I set confirm-kill-emacs to y-or-n-p it will ask for confirmation before closing.
Instead of y-or-n-p, I want to set some temporary timer for 3 seconds before closing emacs. So, if I press…

Chillar Anand
- 4,042
- 1
- 23
- 52
10
votes
3 answers
How do you configure emacs for julia?
What is a recomended way for making emacs as julia code editor? The things which I would like to have are:
autocomplete
julia shell in emacs with abbility to send the code from buffer
debugging

Jānis Erdmanis
- 393
- 3
- 11
10
votes
2 answers
org-mode table exports centered - change to left?
I'm exporting a simple org-table through LaTeX to PDF:
| a | b | c |
| 1 | 2 | 3 |
After export with C-c C-e l o the PDF contains a centered table, and I'd rather have it on the left (to be clear, I'm referring here to the table as a whole, not the…

Steven Arntson
- 1,313
- 9
- 27
10
votes
1 answer
What is a hook?
Just to clarify... For example, in this doc:
A hook is a Lisp variable which holds a list of functions, to be
called on some well-defined occasion. (This is called running the
hook.) The individual functions in the list are called the hook
…

147pm
- 2,907
- 1
- 18
- 39
10
votes
4 answers
Delete files to Trash on OS X
Is there a best, most future-proof method of setting emacs on OS X to delete files to the trash?
I tried the instructions here:
(setq delete-by-moving-to-trash t)
(defun system-move-file-to-trash (file)
"Use \"trash\" to move FILE to the system…

Harvey
- 978
- 6
- 15
10
votes
2 answers
Is there a standard/recommended syntax for defining a keyboard binding?
I have seen all of the following for defining a keyboard binding. All of these work (at least on MS Windows). I don't know if there is another way to do the same thing.
I am wondering if there is a standard or recommended way to define a keyboard…

Name
- 7,689
- 4
- 38
- 84
10
votes
3 answers
How can I write [0,1) in LaTeX mode without breaking indentation?
When writing LaTeX using latex-mode, I often want to write "half-open intervals" in my text. For instance, [0,1), which refers to the set of all numbers x with 0 <= x < 1.
Unfortunately, these "unbalanced delimiters" seem to confuse the…

Nate Eldredge
- 201
- 1
- 4
10
votes
1 answer
How to pass function as argument in elisp
I am reading SICP recently to learn lisp programming.
There is an example in the book to make a high level function sum as below.
(define (sum term a next b)
...
(term a)
...
(next a)
...
In this function, term and next are…

Luis404
- 511
- 5
- 7
10
votes
2 answers
org-babel and remote sql commands
I'm using org-babel to do litterate programming and I find it very convenient. I am able to execute shell commands on remote hosts, and local database commands with the postgres client. To open a file as postgres user, it would look for example like…

KookieMonster
- 387
- 4
- 10
10
votes
7 answers
How to Implement Popup Menu Similar to That Used in Magit
Question
I would like to create user interface in form of popup menu, popup menu
similar to that used in Magit.
Features
Definition of Popup
Popup in context of this question means little temporary window that
contains collection of menu items so…

Mark Karpov
- 4,893
- 1
- 24
- 53
10
votes
4 answers
How to obtain a list of all functions exclusively provided by a certain major mode
This question in inspired by https://stackoverflow.com/q/605785/.
By M-x describe-function I can get a list of all
interactive or nonintractive functions available in the current state
of emacs.
If an specific mode is activated (e.g.…

Name
- 7,689
- 4
- 38
- 84