Skip to content

Instantly share code, notes, and snippets.

@punchagan
Last active June 2, 2016 05:43
Show Gist options
  • Select an option

  • Save punchagan/41214113a88b8b075e61d3f5180f3048 to your computer and use it in GitHub Desktop.

Select an option

Save punchagan/41214113a88b8b075e61d3f5180f3048 to your computer and use it in GitHub Desktop.
org-columns add row
(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