unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: meshulum@gmail.com
To: help-gnu-emacs@gnu.org
Subject: emacs 23.31 on winxp how to run terminal application from shortcut key
Date: Tue, 11 Mar 2014 15:45:06 -0700 (PDT)	[thread overview]
Message-ID: <fd077344-23d9-4dee-afd0-0ffe5780314d@googlegroups.com> (raw)

I usually edit on linux with emacs.
At work I must edit text using a brain dead editor on windows xp pro.
I want to automate grabbing the text into emacs and returning it after i am done.

I have been searching how to do this but can't seem to locate it in help.

I have a pair of autohotkey scripts that i can run from the command line in a cmd.exe windows shell.

1. One script copies text out of a "brain dead editor on windows" (that I must use for work) into emacs ( c:\mlaks\get.ahk)

2. then I edit the text in emacs

3. then I run the second  script to copy the final text back into the "brain dead editor on windows" so I can save it for my boss. (c:\mlaks\put.ahk)

Right now I can run the two scripts from a cmd.exe prompt, (or equivalently from a shell within emacs (M-x shell).)

Then I would like to bind it to an unused pair of key combinations.

So I first tried to do it without starting a shell.
 
M-x!c:\mlaks\get.ahk
or
M-x!c:/mlaks/get.ahk
or
M-x!"c:\mlaks\get.ahk"

but it did not work.

after i did that I figured to find out how to 
bind it to a key combination/

 


                 reply	other threads:[~2014-03-11 22:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fd077344-23d9-4dee-afd0-0ffe5780314d@googlegroups.com \
    --to=meshulum@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).