简体   繁体   English

Windows上的Emacs标签/导航?

[英]Emacs tag/navigation on Windows?

Basically the objective is to enable emacs jumping to definitions, like moving to function definitions in c++ for example, on Windows 7. 基本上,目标是使emacs跳转到定义,例如在Windows 7上移动到c ++中的函数定义。

Tried to follow http://adoxa.altervista.org/global/ from https://www.gnu.org/software/global/global.html 尝试遵循https://www.gnu.org/software/global/global.html上的 http://adoxa.altervista.org/global/

First it is not clear fro me regarding how to use http://adoxa.altervista.org/global/ . 首先,我不清楚如何使用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. 我所做的是解压缩“ GLOBAL 6.5.6 Win32”并修改了PATH变量以查找其中的二进制文件。 Then I added this to ~/.emacs 然后我将此添加到〜/ .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? 在Windows上进行此设置的正确方法是什么?

Is "D:/path/glo656wb/share/gtags/gtags.el" a directory ? "D:/path/glo656wb/share/gtags/gtags.el"目录中 The doc of load-path says that its elements need to be directories. load-path的文档说它的元素必须是目录。 Ch v load-path : Ch v load-path

load-path is a variable defined in C source code . load-pathC 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 ). 每个元素都是一个字符串(目录文件名)或nil(意味着default-directory )。

This list is consulted by the require function. 该列表由require函数查询。

Initialized during startup as described in Info node (elisp)Library Search . 如Info节点(elisp)Library Search所述,在启动期间进行了初始化。 Use directory-file-name when adding items to this path. 将项目添加到此路径时,请使用directory-file-name However, Lisp programs that process this list should tolerate directories both with and without trailing slashes. 但是,处理该列表的Lisp程序应容忍带有斜杠和不带斜杠的目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM