this post was submitted on 09 Nov 2023
1 points (100.0% liked)

Emacs

311 readers
3 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Hello, I have a problem where I want to configure the org-roam-dailes-capture-templates to include in the options the ability to automatically insert \n:t. But due to syntaxical purpose that is read as if I want to have a line break in the template itself. Is there any other way to enable that option without using "/n:t" ?

My current org-roam-dailies-capture-templates look as such:

(setq org-roam-dailies-capture-templates
      '(("d" "default" entry
	 "* %?"
	 :target (file+head "%<%Y-%m-%d>.org"
			    "#+title: %<%d-%m-%Y>\n#+options: author:nil, date:nil, toc:nil, num:5, H:5, \n:t, html-postamble:nil\n"))))

What it ends up doing is the following:

#+title: %currentdate
#+options: author:nil, date:nil, toc:nil, num:5, H:5,
:t, html-postamble:nil

What I want it to do is the following:

#+title: %currentdate
#+options: author:nil, date:nil, toc:nil, num:5, H:5, \n:t, html-postamble:nil

2nd Question: How to also make sure that the #+options line is also included when I open a new node and not only in the dailies page? I am very new to Emacs in general, so thank you for your patience if my question is dead simple and I am unable to figure out very simple things. Appreciate any help.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here