Mercurial > blog
changeset 161:1202030e8c52
Fixed grammar.
author | Oleksandr Gavenko <gavenkoa@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 20:23:22 +0200 |
parents | 86f16efac74f |
children | 2f52511eaba7 |
files | 9c6e5976-e228-11e6-a216-485b39c42d0f/index.rst |
diffstat | 1 files changed, 18 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/9c6e5976-e228-11e6-a216-485b39c42d0f/index.rst Tue Oct 30 20:14:01 2018 +0200 +++ b/9c6e5976-e228-11e6-a216-485b39c42d0f/index.rst Tue Oct 30 20:23:22 2018 +0200 @@ -6,19 +6,19 @@ :updated: 2017-01-24 :tags: emacs, win, cygwin -I haven't used Windows for a long time and new job may require Windows environment. So I checked out -new ways to use Emacs under Windows. +I haven't used Windows for a long time and my new job may require Windows environment. So I checked +out new ways to use Emacs under Windows. I used to prefer native Emacs over Cygwin because of native widgets and copy/paste. With -`cygwin-mount` cross-compiling from Cygwin to native win application would be easy. +``cygwin-mount`` cross-compiling from Cygwin to native Windows application would be easy. -The only problem I encountered that `hg` is a Python script, not an executable and can't be called -from native Emacs. To work around with issue I wrote simple Cygwin application that route call and -arguments to script. +The only problem I've encountered is that ``hg`` is a Python script, not an executable and can't be +called from native Emacs. To work around an issue I wrote simple Cygwin application that re-route +call and arguments to the script. -So you just rename this utility to ``$SCRIPT.exe`` and put it behind Cygwin in a ``PATH``. It have -basic protection from infinite calling to itself and allows using of scripts under from Cygwin in -native Windows application, like native Emacs. +Just rename this utility to ``$SCRIPT.exe`` and put it behind Cygwin in the ``PATH``. It has a basic +protection from infinite calling to itself and allows using of Cygwin scripts in native Windows +application, like native Emacs. Source code of utility is available on http://hg.defun.work/utils/file/tip/cygwin/cygrun/cygrun.c @@ -37,16 +37,16 @@ DISPLAY=:0 xterm -With some tweaking it is possible smoother integration:: +With some tweaking integration will be smoother:: XWin -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle" -Nowadays there is ``emacs-w32`` build in Cygwin repositories. It uses native widgets and in all -other cases is regular Cygwin application. So I have Hg/Git and TRAMP working out of the box! +Nowadays there is ``emacs-w32`` build in Cygwin repository. It uses native widgets but in all other +cases it is a regular Cygwin application. So I will have Hg/Git and TRAMP working out of the box! -Only issue with ``emacs-w32`` executable is that all Cygwin executables compiled with +The only issue with ``emacs-w32`` executable is that all Cygwin executables compiled with ``--subsystem=console`` or ``-mconsole`` (which is by default). That causes opening Windows console -window along with GUI. That console window distracts me during ``Alt+TAB``. +window along with app GUI. That console window distracts me during ``Alt+TAB``. https://cygwin.com/ml/cygwin/2016-05/msg00375.html Re: Is it possible to hide emacs-w32 console window? @@ -54,7 +54,6 @@ Cygwin programs can't be compiled with ``-mwindows`` (or ``--subsystem=windows``). Reason for this described in ``run(1)`` man page:: - run - start programs with hidden console window SYNOPSIS @@ -76,11 +75,11 @@ run emacs-w32 -I have "smart" starter of Emacs with short and convenient for quick typing name ``e`` and batch file -``e.bat``. Because I switched to ``emacs-w32`` as a default for Windows I updated ``e.bat`` -implementation to take care about ``run``:: +I have "smart" starter of Emacs with short and convenient name for quick typing: ``e`` and batch +file ``e.bat``. Because I switched to ``emacs-w32`` as a default for Windows I updated ``e.bat`` +implementation to use ``run`` goodies:: run emacsclient-w32 -a emacs-w32 %* -Full script available at:: http://hg.defun.work/utils/file/tip/emacs/e.bat +Full script is available at:: http://hg.defun.work/utils/file/tip/emacs/e.bat