Skip to content

Instantly share code, notes, and snippets.

@schani
Created June 25, 2010 00:49
Show Gist options
  • Save schani/452230 to your computer and use it in GitHub Desktop.
Save schani/452230 to your computer and use it in GitHub Desktop.
(define-key-after
global-map
[menu-bar bertl]
(cons "Bertl" (make-sparse-keymap "beidel"))
'tools)
(defun bertl-pipe-region (command)
(interactive "sCommand: ")
(shell-command-on-region (region-beginning) (region-end) command nil t))
(define-key
global-map
[menu-bar bertl pipe-region]
'("Pipe Region" . bertl-pipe-region))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment