Skip to content

Instantly share code, notes, and snippets.

@michaelmrose
Created April 28, 2020 02:06
Show Gist options
  • Select an option

  • Save michaelmrose/2a7435462c884e25e9734b2e638e8ce7 to your computer and use it in GitHub Desktop.

Select an option

Save michaelmrose/2a7435462c884e25e9734b2e638e8ce7 to your computer and use it in GitHub Desktop.
fixing underscores in org in as complicated manner as possible
(eval-after-load 'autoinsert
'(define-auto-insert '(org-mode . "Org Skeleton")
'("Description: "
"#+OPTIONS: ^:{} \n \n")))
(setq auto-insert-query nil)
;; the options defined in org skeleton aren't effective until the file is reread or normal-mode is executed
;; so lets run normal mode after we insert the text
(advice-add 'auto-insert :after 'normal-mode)
(auto-insert-mode 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment