Last active
June 2, 2016 05:43
-
-
Save punchagan/41214113a88b8b075e61d3f5180f3048 to your computer and use it in GitHub Desktop.
org-columns add row
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
| (org-defkey org-columns-map "N" 'pc/org-columns-new-row) | |
| (defun pc/org-columns-new-row (&optional key) | |
| "Allow adding a new row." | |
| (interactive) | |
| (save-excursion | |
| (save-restriction | |
| (org-beginning-of-line) | |
| (org-with-silent-modifications | |
| (org-insert-heading) | |
| (insert (read-string "Heading: ")) | |
| (org-columns-redo))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment