0

Say, you create a new buffer (Fundamental), type a shell command and want it executed. Like you can do in a *scratch* buffer with lisp code (C-x C-e). Or you have a text file, that has text interspersed with shell commands. Or a shell script, and you want to execute one of the commands. Is there a way?

Or maybe you have an url in a buffer, and you want to do xdg-open URL. Or a path to a directory, and you want ls DIR. Is this possible? Maybe, like, M-! xdg-open , and then somehow paste the url into the minibuffer?

  • 1
    Check out Working with source code in the Org mode manual. – NickD Jun 23 at 0:20
  • 1
    If you have a URL in a buffer, you can just run M-x browse-url-at-point. – loris Jun 23 at 7:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.