[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can't access info dir in emacs under msys2
From: |
Oleksandr Gavenko |
Subject: |
Re: can't access info dir in emacs under msys2 |
Date: |
Mon, 10 Oct 2016 17:01:00 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
On 2016-10-03, Bostjan Vilfan wrote:
> however, I am experiencing difficulties in accessing manuals, other than the
> emacs manual and the emacs lisp manual (for example, I would like to access
> the org mode manual). Could someone, please, let me know how to set up emacs
> so that I can access all manuals in /msys64/mingw64/share/info.
``Info-directory-list`` is the easiest way to extend INFOPATH.
With native Emacs and ``cygwin-mount.el`` you may have:
--8<---------------cut here---------------start------------->8---
INFOPATH=:/cygdrive/d/home/usr/share/info:/usr/share/info:/usr/local/share/info
MANPATH=:/cygdrive/d/home/usr/share/man:/usr/share/man:/usr/local/share/man
--8<---------------cut here---------------end--------------->8---
Trailing ``:`` ensure that default search path included in search.
In that way these variables can be used both by Cygwin/MSYS ``info``/``emacs``
and native Emacs. See example in:
http://hg.defun.work/skel/file/e40a0cc2ec05/.env
Because I have personal info pages store and always use ``cygwin-mount.el`` on
Windows I have:
--8<---------------cut here---------------start------------->8---
(unless (getenv "INFOPATH")
(if (eq system-type 'windows-nt)
(setenv "INFOPATH" (concat (expand-file-name "~/usr/share/info")
":/usr/share/info:"))
(setenv "INFOPATH" (expand-file-name "~/usr/share/info:"))))
;; Assume that cygwin-mount already activated.
(when (featurep 'cygwin-mount)
(setenv "INFOPATH" "/usr/share/info/:~/usr/share/info/:")
;; Redefine path-separator to UNIX to update Info-directory-list.
(let ( (path-separator ":") )
(require 'info)
(info-initialize) ))
--8<---------------cut here---------------end--------------->8---
--
http://defun.work/
- Re: can't access info dir in emacs under msys2, (continued)
Re: can't access info dir in emacs under msys2, Óscar Fuentes, 2016/10/03
Re: can't access info dir in emacs under msys2, Thien-Thi Nguyen, 2016/10/03
Re: can't access info dir in emacs under msys2, Robert Thorpe, 2016/10/03
Re: can't access info dir in emacs under msys2, Javier, 2016/10/07
Re: can't access info dir in emacs under msys2,
Oleksandr Gavenko <=
Re: can't access info dir in emacs under msys2, Robert Thorpe, 2016/10/04