Basically the objective is to enable emacs jumping to definitions, like moving to function definitions in c++ for example, on Windows 7.
Tried to follow http://adoxa.altervista.org/global/ from https://www.gnu.org/software/global/global.html
First it is not clear fro me regarding how to use http://adoxa.altervista.org/global/ . What I did was to unzip 'GLOBAL 6.5.6 Win32' and ammended PATH variable to look to the binaries therein. Then I added this to ~/.emacs
(setq load-path (cons "D:/path/glo656wb/share/gtags/gtags.el" load-path))
;;(add-to-list 'load-path "D:/path/glo656wb/share/gtags/gtags.el")
(autoload 'gtags-mode "gtags" "" t)
;; C-mode
(add-hook 'c-mode-hook
'(lambda ()
(gtags-mode t)
))
But am getting this error message "Can not open load file, no such file or directory..."
Any idea? What is the proper way to setup this on Windows?
Is "D:/path/glo656wb/share/gtags/gtags.el"
a directory ? The doc of load-path
says that its elements need to be directories. Ch v load-path
:
load-path
is a variable defined inC source code
.Its value is shown below.
This variable can be risky when used as a file-local variable.
Documentation:
List of directories to search for files to load.
Each element is a string (directory file name) or nil (meaning
default-directory
).This list is consulted by the
require
function.Initialized during startup as described in Info node
(elisp)Library Search
. Usedirectory-file-name
when adding items to this path. However, Lisp programs that process this list should tolerate directories both with and without trailing slashes.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.