Using Native Emacs on Windows and Cygwin ======================================== Author: Momchil Ivanov Date : 2017.11.01 Introduction ------------ This article describes how to use natice Emacs on Windows and Cygwin. Cygwin Paths ------------ The paths on Windows have the form C:\Users\Username\file.txt Whereas the same file can be accessed in Cygwin with the path /cygdrive/c/Users/Username/file.txt In case on executes emacs from cygwin and passes a path to a file not in the current directory, native emacs cannot access it. It converts it to the following C:/cygdrive/c/Users/Username/file.txt In order to use emacs convenientry in this case, one can use a script that detects the /cygdrive paths and converts them to proper windows paths. One such script is the cygwin-mount.el [1]. Add the following to your .emacs file assuming the script is installed in the ~/.emacs.elisp folder (load (expand-file-name "~/.emacs.elisp/cygwin-mount.el")) (require 'cygwin-mount) (cygwin-mount-activate) References ---------- 1: https://www.emacswiki.org/emacs/download/cygwin-mount.el