Most Popular
1500 questions
32
votes
2 answers
Is it possible to export content of subtrees without their headings?
I draft documents in org-mode and export them to LaTeX, HTML, etc. as needed. I frequently use the tag :no_export: whenever I don't want a certain subtree to show up in the output.
What I also want is want is for the export to completely ignore…

Brian Z
- 2,863
- 16
- 22
32
votes
3 answers
What functionality is missing in GNU Emacs when compared to XEmacs?
In terms of functionality, what are the key points that presently distinguish XEmacs from GNU Emacs?
To account for the different release schedules the most recent development version of each Emacs flavor should be considered as the basis for…

paprika
- 1,944
- 19
- 26
32
votes
2 answers
How can I hide/display LaTeX section just like org-mode does with headlines?
When editing org files, I find it extremely convenient how you can
hide and display headlines and their content by just hitting TAB on
the headline.
For instance, consider the following buffer
* Headline 1
Some text here.
* Headline 2
Some more…

Malabarba
- 22,878
- 6
- 78
- 163
32
votes
4 answers
How can I simulate an arbitary key event from Elisp?
Is it possible to simulate an arbitrary key event from elisp? I am aware of ways that I can find the binding for a given key, and then call that command interactively, but what if that key event is not bound to a command?
As one example, what if I…

nispio
- 8,175
- 2
- 35
- 73
32
votes
3 answers
Why is `let' faster with lexical scope?
While reading through the source code for the dolist macro, I ran into the following comment.
;; This is not a reliable test, but it does not matter because both semantics are acceptable, tho one is slightly faster with dynamic scoping and the…

Malabarba
- 22,878
- 6
- 78
- 163
32
votes
1 answer
How do I associate a file extension with a specific mode?
I would like emacs to switch to gnuplot-mode when I open a file ending in .g or .gnuplot.
I tried
;; gnuplot mode-name
(add-to-list 'gnuplot-mode '("\\.g\\'" . gnuplot-mode))
or
;; gnuplot mode-name
(add-to-list 'gnuplot '("\\.g\\'" .…

Stein
- 551
- 1
- 5
- 11
31
votes
2 answers
Is there a way to resize margins when exporting PDF in org-mode?
I want to export my org document as a PDF, but its margins are way too big. I would like to re-size them as I wish. I am using
#+LaTeX_CLASS: report
I do not know if there is a way. Any help?

makeMonday
- 445
- 1
- 5
- 8
31
votes
4 answers
Best ways of generating UML from within Emacs
There are a bunch of integration options between Emacs and UML tools, like org-mode's plantuml embedding, a plantuml major mode etc. Of course I can try them out but I'm wondering what other people use for a UML workflow?
Embedding inside another…

Mark
- 1,409
- 1
- 15
- 20
31
votes
5 answers
Why do easy templates, .e.g, "< s TAB" in org 9.2 not work?
Easy templates in Org 9.2 are not working for me on GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30.
I have changed my elpa/ directory to smelpa/. I load emacs -q and switch to the *scratch* buffer and toggle M-x org-mode. A call to …

Lorem Ipsum
- 4,327
- 2
- 14
- 35
31
votes
1 answer
Set the background of org-exported blocks according to theme
I export org-mode files quite often, and almost all of them have code in them. When I do export code, it ends up coloring the text depending on my theme, however, I switch between a dark theme and a light theme regularly. In the case of the light…

Lee H
- 2,697
- 1
- 16
- 31
31
votes
3 answers
Reset custom variable to default value programmatically
Q: Using Elisp, how can I reset a variable to its default value without knowing what that value is?
I tried to figure out how to do this by bringing up the Customize interface for a variable I set to a non-default value in my init-file and pressing…

itsjeyd
- 14,586
- 3
- 58
- 87
31
votes
1 answer
How to use pdf-tools (pdf-view-mode) in emacs?
pdf-tools includes pdf-view-mode which offers several features not present in doc-view-mode (see end of question).
Can pdf-view-mode be used as a replacement for doc-view-mode generally, or does it have to be "tool" by tool?
In either case, is it…

brittAnderson
- 719
- 1
- 7
- 18
31
votes
3 answers
How can I replicate Vim's code folding?
Code folding in Emacs
Sometimes I want to fold a block of text. In Vim you have easy folding without fuzz. Without to add any special characters like "markers" or specific regex like {{{. I would like to select a region and fold it, without messing…

ReneFroger
- 3,855
- 22
- 63
31
votes
1 answer
How do I use nadvice?
My config is full of advice, and I keep hearing about the new shiny minimalist nadvice.el package.
I've searched the manuals, and I've read the source, but I'll openly admit: I still have no idea how to actually use it.
Can anyone here point me to…

PythonNut
- 10,243
- 2
- 29
- 75
31
votes
4 answers
Understanding SCHEDULED in Org mode
I've read the various manual pages about DEADLINE and SCHEDULED, and have used them both.
I understand that DEADLINE is used in the Agenda to alert in advance about an upcoming deadline, and to continue to alert after the deadline if the item is not…

SabreWolfy
- 1,378
- 1
- 13
- 26