;; -*- lexical-binding: t -*- ;; (defun org-capture-init() ;; (setq org-capture-templates ;; '(("t" "Personal todo" entry ("Inbox") ;; "* TODO %?\n%i\n%a" :prepend t)))) (use-package org :defer :ensure `(org :repo "https://code.tecosaur.net/tec/org-mode.git/" :branch "dev") :hook (org-mode . org-cdlatex-mode) :hook (org-mode . org-indent-mode) :hook (org-mode . visual-line-mode) :pretty-hydra ;; See `org-structure-template-alist' ((:color blue :quit-key ("q" "C-g")) ("Basic" (("a" (hot-expand "" . org-insert-subheading)) :config ;; For hydra (defun hot-expand (str &optional mod) "Expand org template. STR is a structure template string recognised by org like