Guest User

Untitled

a guest
Sep 26th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ;; eg when in a text file, (execute-shell-command-on-buffer "p4 edit %s") will check out the file in perforce
  2. (defun execute-shell-command-on-buffer (shell-command-text)
  3. (interactive "MShell command:")
  4. (shell-command (format shell-command-text (shell-quote-argument buffer-file-name)))
  5. )
Add Comment
Please, Sign In to add comment