Activate Cygwin for native Windows Emacs if available.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 18 May 2016 14:05:30 +0300
changeset 1396 33de58ab0d11
parent 1395 af560c8f3d54
child 1397 d4182b28cdc1
Activate Cygwin for native Windows Emacs if available.
.emacs-my
.emacs-post
--- a/.emacs-my	Sun May 15 23:31:06 2016 +0300
+++ b/.emacs-my	Wed May 18 14:05:30 2016 +0300
@@ -440,6 +440,10 @@
 
 (eval-when 'compile (require 'shell))
 
+;; Activate Cygwin for native Windows Emacs if available.
+(when (and (eq window-system 'w32) (require 'cygwin-mount nil t))
+  (cygwin-mount-activate))
+
 (defvar my-use-windows-shell nil
   "If t 'cmdproxy.exe' will be used as shell.
 Affect on \\[shell] like commands. If nil, 'sh' will be used." )
@@ -1486,7 +1490,6 @@
 
 (eval-when 'compile (require 'woman))
 
-;; Assume that cygwin-mount already activated.
 (when (featurep 'cygwin-mount)
   (let ( (path (expand-file-name "~")) )
     (when (string-match "\\([c-z]\\):/" path)
--- a/.emacs-post	Sun May 15 23:31:06 2016 +0300
+++ b/.emacs-post	Wed May 18 14:05:30 2016 +0300
@@ -4,11 +4,6 @@
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
-;; (require 'cygwin-mount)
-;; (cygwin-mount-activate)
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
 ;; (when (featurep 'jabber)
 ;;   (setq jabber-account-list
 ;;         '(