Skip to content

Instantly share code, notes, and snippets.

@jonEbird
Created December 4, 2017 19:59
Show Gist options
  • Save jonEbird/4580c7a91d6d3fee99a57241e5646ace to your computer and use it in GitHub Desktop.
Save jonEbird/4580c7a91d6d3fee99a57241e5646ace to your computer and use it in GitHub Desktop.
;; In an effort to fix the poor new template system, introducing my own fix:
(defun jsm/org-src-block ()
"Better src block completion experience"
(interactive)
(org-insert-structure-template
(concat "src " (completing-read "Source type: " org-src-lang-modes))))
(define-key org-mode-map (kbd "C-c s") 'jsm/org-src-block)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment