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…
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…
user1031565
  • 93
  • 1
  • 3
9
votes
1 answer

Symbol’s function definition is void

I am trying to make an interactive toggle in emacs 27.0.90 When I eval-region no warnings or errors are shown. However, when I do (helm/toggle-frame) in ielm it throws Symbol’s function definition is void: helm-in-frame-p Here is the code, (let…
546756ryd
  • 93
  • 1
  • 1
  • 3
9
votes
1 answer

How can I prevent GNU Emacs from splitting windows on startup?

Whenever I try to open an existing file with GNU Emacs, the window always split horizontally so as to show two buffers: one buffer containing the file and the GNU Emacs buffer. How can I set up Emacs to not do that and show only the buffer that…
Charo
  • 865
  • 1
  • 9
  • 11
9
votes
3 answers

Is there a way to know which keys or functions I used most?

If I can find out which keys I used most, I may create a macro for it; if I can find out which function I used most yet not binded, I can bind it to a key. This may improve efficiency. Is there a way to get these statistics knowledge?
Nick
  • 4,423
  • 4
  • 24
  • 41
9
votes
2 answers

Split Window at outermost border

I'm looking for a way to add a new full-height window split to an existing (splitted) window configuration. Because I don't know how to explain it properly I'll just post some ASCII graphics showing the desired behaviour for two example window…
elemakil
  • 2,517
  • 1
  • 18
  • 26
9
votes
1 answer

How to change helm's highlight color

I'm using Monokai theme. When I start helm, the current selected line are highlighted in gray. It's not easy to spot,especially with the title information in blue. How can I change this gray highlight, say, in purple?
Nick
  • 4,423
  • 4
  • 24
  • 41