Created
April 28, 2020 02:06
-
-
Save michaelmrose/2a7435462c884e25e9734b2e638e8ce7 to your computer and use it in GitHub Desktop.
fixing underscores in org in as complicated manner as possible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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