# HG changeset patch # User Oleksandr Gavenko # Date 1463570627 -10800 # Node ID d4182b28cdc1e8935650b19136dabe16fec64df1 # Parent 33de58ab0d116db3d36db1431acbb4d3afc396f3 Including ~/usr/share/info in INFOPATH. Tweak for INFOPATH and cygwin-mount.el. diff -r 33de58ab0d11 -r d4182b28cdc1 .emacs-my --- 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 diff -r 33de58ab0d11 -r d4182b28cdc1 INSTALL.rst --- 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: - :\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). ===============