Created
January 5, 2018 05:06
-
-
Save takaxp/07f0c3080cc40a1fbf4c7e44455f91da to your computer and use it in GitHub Desktop.
advice:org-return
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
| (with-eval-after-load "org" | |
| (defun advice:org-return (f &optional arg) | |
| "An extension for checking invisible editing when you hit the enter." | |
| (interactive "P") | |
| (org-check-before-invisible-edit 'insert) | |
| (apply f arg)) | |
| (advice-add 'org-return :around #'advice:org-return)) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't quite understand why
org-catch-invisible-editsis not checked bycalling org-check-before-invisible-editin the original org-return. So I updated it :)