diff options
author | Kyle Meyer <meyerkya@gmail.com> | 2013-07-23 15:27:13 -0400 |
---|---|---|
committer | Kyle Meyer <meyerkya@gmail.com> | 2013-07-23 16:47:47 -0400 |
commit | a96a23d9ce117923d86aa4db035db194ec9583ed (patch) | |
tree | 4ccbfa8e47ec2fc5911a271166088b9eb557df49 | |
parent | f5a5f201d3882667822c5c0dde6ede187b2a02ab (diff) | |
download | emacs.d-a96a23d9ce117923d86aa4db035db194ec9583ed.tar.gz |
Add orgtbl to orgstruct hook calls
If orgtbl is not loaded with orgstruct++, void
`orgtbl-line-start-regexp' gives error.
-rw-r--r-- | init/km-org.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/init/km-org.el b/init/km-org.el index 7588667..942fd5a 100644 --- a/init/km-org.el +++ b/init/km-org.el @@ -146,5 +146,9 @@ (setq org-catch-invisible-edits 'error) -(add-hook 'message-mode-hook 'turn-on-orgstruct++) -(add-hook 'magit-log-edit-mode-hook 'turn-on-orgstruct++) +(defun km/load-orgstruct () + (turn-on-orgstruct++) + (turn-on-orgtbl)) + +(add-hook 'message-mode-hook 'km/load-orgstruct) +(add-hook 'magit-log-edit-mode-hook 'km/load-orgstruct) |