12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- (require 'org-babel)
- (defvar org-babel-key-prefix "\C-c\M-b"
- "Prefix behind which all org-babel interactive key-binding will
- be placed. See `org-babel-key-bindings' for the list of
- interactive babel functions which are assigned key bindings.")
- (defvar org-babel-key-bindings
- '(("t" . org-babel-tangle)
- ("T" . org-babel-tangle-file)
- ("e" . org-babel-execute-src-block)
- ("s" . org-babel-execute-subtree)
- ("b" . org-babel-execute-buffer)
- ("h" . org-babel-sha1-hash)
- ("g" . org-babel-goto-named-source-block)
- ("l" . org-babel-lob-ingest)
- ("z" . org-babel-switch-to-session)
- ("p" . org-babel-expand-src-block))
- "Org-babel keybindings. This list associates interactive
- org-babel functions with keys. Each element of this list will
- add an entry to the `org-mode-map' using the letter key which is
- the `car' of the a-list placed behind the generic
- `org-babel-key-prefix'.")
- (mapc (lambda (pair)
- (message "%S" pair)
- (define-key org-mode-map
- (concat org-babel-key-prefix (car pair))
- (cdr pair)))
- org-babel-key-bindings)
- (provide 'org-babel-keys)
|