Skip to content

Instantly share code, notes, and snippets.

@seanhagen
Last active February 18, 2022 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanhagen/36ff71356ce20b79966774149baf0549 to your computer and use it in GitHub Desktop.
Save seanhagen/36ff71356ce20b79966774149baf0549 to your computer and use it in GitHub Desktop.
Example Org Config
(setq straight-use-package-by-default t
user-emacs-directory "~/test/emacs"
straight-base-dir "~/test"
package-user-dir "~/test/elpa")
(defvar bootstrap-version)
(let ((bootstrap-file (expand-file-name "~/test/straight/repos/straight.el/bootstrap.el"))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(require 'package)
(setq package-archives
'(
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://stable.melpa.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("org" . "http://orgmode.org/elpa/")))
(use-package doct
:ensure t)
(use-package org
:ensure t
:config
;; keep getting this: org-narrow-to-subtree: Symbol’s function definition is void: org-element--cache-active-p
;; so just do this:
(require 'org-element)
(setq org-directory "~/org"
org-capture-templates
(doct '(("Meeting" :keys "m" :type entry :empty-lines 0
:datetree t :olp ("Meetings") :time-prompt t
:file "~/test/meetings-test.org"
:template-file "~/test/meeting.txt")))))
* TODO %^{Meeting Title}
%?

First Heading

Meetings

Test Heading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment