How to using cygwin command open a file in windows native Emacs?

0

I am using cygwin and windows NTEmcas. In cygwin console, how to open a file by NTEmacs ?

Mingo

Posted 2013-02-21T13:22:11.877

Reputation: 403

I don't use NTEmacs so I don't have a simple answer. It would help to see the command you type and the response you get. The most likely reason I can think of is that NTEmacs is not in your PATH. NTEmacs will probably also fail if you give it a full Cygwin path name as the file name argument. To fix that, use cygpath (see "man cygpath") either directly on the command line or in a wrapper script. A wrapper script can also avoid the need to alter your PATH by using the full path name of NTEmacs. Again, the more information you provide, the better answer you will get. – garyjohn – 2013-02-21T18:12:52.530

I believe there is no "native" emacs port, all use (parts of) CygWin. Your best bet is to use the CygWin one, and its emacsclient(1) (if NTEmacs doesnt' provide one). – vonbrand – 2013-02-22T02:40:38.653

Answers

2

I got the solution.

  1. put Following to the .emacs, to make the emacs server start automatic

    (server-start)

  2. in cygwin add one alias:

    alias e='cygstart /d/p/ntemacs24/bin/emacsclientw.exe'

  3. then in cygwin console, you can open a file in emacs by

    $ e wp-settings.php

Mingo

Posted 2013-02-21T13:22:11.877

Reputation: 403