Including ~/usr/share/info in INFOPATH. Tweak for INFOPATH and cygwin-mount.el.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 18 May 2016 14:23:47 +0300
changeset 1397 d4182b28cdc1
parent 1396 33de58ab0d11
child 1398 aa56dcca6431
Including ~/usr/share/info in INFOPATH. Tweak for INFOPATH and cygwin-mount.el.
.emacs-my
INSTALL.rst
--- a/.emacs-my	Wed May 18 14:05:30 2016 +0300
+++ b/.emacs-my	Wed May 18 14:23:47 2016 +0300
@@ -1444,10 +1444,12 @@
 ;(autoload 'LaTeX-preview-setup "preview")
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(message "Info")
+(message "info")
 
 (unless (getenv "INFOPATH")
-  (setenv "INFOPATH" (expand-file-name "~/usr/share/info:")))
+  (if (not (eq window-system 'w32))
+      (setenv "INFOPATH" (expand-file-name "~/usr/share/info:"))
+    (setenv "INFOPATH" (concat (expand-file-name "~/usr/share/info") ":/usr/share/info:"))))
 
 ;; Assume that cygwin-mount already activated.
 (when (featurep 'cygwin-mount)
@@ -1458,9 +1460,6 @@
     (info-initialize)
     ))
 
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(message "info-lookup")
-
 ;; Info index nodes for automake under Debian.
 (defvar my-fix-for-automake-info-lookup
   '(("(automake-1.11)Macro Index" nil
--- a/INSTALL.rst	Wed May 18 14:05:30 2016 +0300
+++ b/INSTALL.rst	Wed May 18 14:23:47 2016 +0300
@@ -9,15 +9,27 @@
 
 You can do anything with this file without any warranty.
 
-Setup on Windows.
-=================
+Setup on Windows
+================
+
+Choose separate ``HOME`` directory like ``c:\home`` and set this environment
+variable in ``System => Advanced System Settings => Environment Variables``.
+
+After setting ``HOME`` environment variable Emacs expands ``~`` path element to
+that directory allowing quicker access to your file (especially with ``ido``).
 
-Setup HOME.
------------
+``INFOPATH`` automatically expanded to ``~/usr/share/info``. With
+``cygwin-mount.el``Cygwin info pages become available in native Emacs too!
+
+.. note::
 
-Setup HOME environment variable. For example::
+   To later ``INFOPATH`` to work with Cygwin and native Emacs use paths like::
+
+     INFOPATH=e:/opt/cygwin/usr/share/info;e:/home/usr/share/info;e:/bin/gnuwin32/info:
 
-  <win-drive-char>:\home
+   Latest ``:`` sign instructs Cygwin built-in info viewver to include system
+   paths and native Emacs to include its own info pages regardless installation
+   directory.
 
 Setup MANPATH.
 --------------
@@ -37,19 +49,6 @@
 
 Also you can set woman-manpath variable.
 
-Setup INFOPATH.
----------------
-
-To browse info file inside Emacs set INFOPATH like this for Cygwin::
-
-  INFOPATH=e:/opt/cygwin/usr/share/info;e:/home/usr/share/info;e:/bin/gnuwin32/info;e:/bin/gnuwin32/share/info:
-
-and like this for MinGW::
-
-  INFOPATH=e:/bin/gnutls/share/info;e:/bin/gnuwin32/info;e:/bin/gnuwin32/share/info;e:/bin/MinGW/info;e:/bin/MinGW/share/info;e:/bin/wget/info:
-
-Note that last colon symbol is essential for include also Emacs info to list.
-
 GTD (org-mode).
 ===============