Most Popular
1500 questions
9
votes
1 answer
yasnippet: how to expand a snippet from a string and have the fields recognized?
Q: how do I get yasnippet to expand a text string correctly (recognizing snippet fields) from inside elisp code?
A very simple snippet is a just a string of characters with some control characters intermingled. We can also use elisp forms to create…

Dan
- 32,584
- 6
- 98
- 168
9
votes
1 answer
How to use Magit to git log / git grep to find expressions across all previous commits
I am using Magit and was wondering how to revert to a specific commit that contained a specific expression. First I need to find the expression across all commits content. How to do this? In command line it would be something like git grep / git…

Emmanuel Goldstein
- 934
- 6
- 18
9
votes
1 answer
Creating permalinks for sections in HTML exported from org-mode
By default when org-mode documents are exported to HTML, the section and sub-section links look like
file:///path/to/export/location/doc.html#sec-1-1
The problem is that the above link won't point to the correct section if I rearrange the…

Kaushal Modi
- 25,203
- 3
- 74
- 179
9
votes
4 answers
How to see files of a particular tag in org-roam?
Before I installed org-roam I saw a screenshot or a video somewhere in which the tags of an org-roam note looked like links. I was under the impression that org-roam allows you to see all notes of a particular tag.
I added a tag to my test note, but…

Glory to Russia
- 225
- 2
- 9
9
votes
2 answers
Where is the org contrib directory?
I'm trying to use org-checklist. The documentation says that I should 'Ensure the org contrib directory is in load-path'. Where is the contrib directory?

user2355213
- 191
- 1
- 2
9
votes
1 answer
Is it possible to execute a function or command at a specific time?
Is it possible to execute a function or command at a specific time? As an explicit example, is it possible to kill emacs at a specific time (time determined by the OS).

Name
- 7,689
- 4
- 38
- 84
9
votes
1 answer
How to set org-mode header properties globally?
I am trying to set the following org-mode tangle property (mkdirp), which
creates parent directories for tangled files if the directory does not
exist. A ‘yes’ value enables directory creation whereas ‘no’ inhibits
it.
Apparently, it makes sense…

tinlyx
- 1,276
- 1
- 12
- 27
9
votes
1 answer
Can Emacs detect the path of its executable?
Suppose that I have two identical emacs (of the same version) on my system. One is placed at C:\Program Files\Gnu Emacs and the other one at different place, say C:\Program Files\New Gnu Emacs. Can a running Emacs detect which one is? For example,…

Name
- 7,689
- 4
- 38
- 84
9
votes
1 answer
lsp project root
I just switched to using lsp for my C++ and Python IDE needs. However, I am running into a constant issue where Python and C++ files have the wrong root, as reported by (lsp-workspace-root).
The root is considered to be the git root (I assume from…

Tohiko
- 1,589
- 1
- 10
- 22
9
votes
1 answer
Setting class attribute for html table in orgmode export
I would like to set the class for a table in html export, e.g.:
While it seems that setting some attributes for export of tables to HTML are possible:
#+ATTR_HTML: :border 2 :rules all :frame border I could not…