Created
November 23, 2015 13:33
-
-
Save lislon/1a9ee0f86c37b7883bb1 to your computer and use it in GitHub Desktop.
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
| ;; ------------------------------------------------------------------------------ | |
| ;; lord-lislon hooks | |
| ;; ------------------------------------------------------------------------------ | |
| (add-to-list 'auto-mode-alist | |
| '("lord-lislon\\.org\\'" . (lambda () | |
| (org-mode) | |
| (add-hook 'org-insert-heading-hook 'my/lord-lislon-auto-insert-date-heading nil t)))) | |
| (defun my/lord-lislon-auto-insert-date-heading () | |
| "Automatically adds lislon or lord tags and timestamp when adding new headings" | |
| (let ((cur (point))) | |
| (insert (concat " :" my/lord-lislon-tag ":")) | |
| (newline-and-indent) | |
| (org-time-stamp '(16) 'inactive) | |
| (goto-char cur)) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment