问题标签 [emacs]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1115 浏览

visual-studio - 如何在 Visual Studio emacs 模式下禁用绑定到 Tab 键的“智能插入”功能?

在 Visual Studio emacs 模式和默认模式下,tab 键都绑定到 Edit.InsertTab。但是,在 emacs 模式下,选项卡按钮会跳转到它期望下一行开始的位置,而不是插入选项卡。

有没有办法在保留 emacs 键绑定的同时禁用此“智能插入”?

0 投票
7 回答
3500 浏览

windows - 在 emacs 中创建别名?

我有一份 emacs 副本,我在拇指驱动器上的几台不同(Windows)计算机上使用它,我想知道是否有可能在 emacs 中创建类似于 bash 别名或符号链接的东西?我可以在 find-file 中使用的东西是我正在寻找的主要内容,例如:C-f <some link>将带我去某个地方。目前,我每次使用新计算机时都必须添加一个新的 defun,这有点痛苦,我发誓我在某个地方见过这个,但是几个月的谷歌搜索却一无所获。

我现在得到的是这样的:

但是,对于仅仅访问一个相当 hacky 的访问我半定期访问的文件来说,这感觉非常过头和 hacky。而且建立一个新文件需要付出很多努力。

但在我看来,它最大的问题是它不适合我的工作流程。当我想访问一个文件时,我总是这样做C-x C-f,如果我意识到“嘿,我在工作”,我就必须这样做C-g M-x go-awesome。如果我说我希望能够做一些相当于ln -s /some/awesome/diremacs 内部的事情,而不是内置在操作系统中,那么这C-x C-f ~/awesome/some/sub/dir将在 Windows 或其他任何地方工作,也许会更清楚。

0 投票
12 回答
22527 浏览

windows - How to prevent Windows XP from stealing my input Ctrl-Space which is meant for Emacs?

I am learning and using Emacs. What I found annoying is that Ctrl-Space input will be stolen by Windows XP to switch the language bar instead of setting the mark in Emacs. The "language bar" is the native input languages selection such as Chinese keyboard other than English keyboard. Is there a way to temporarily prevent XP from stealing it? I have disabled the language bar from "Regional and language options" from Control Panel but the problem still exists. It doesn't happen on my Windows 2000 desktop at office but it happens on my work Windows XP laptop. Thank you very much.

0 投票
9 回答
80943 浏览

emacs - 如何使用 Emacs 更改文件的读/写模式?

如果文件设置为只读模式,我如何在 Emacs 中将其更改为写入模式,反之亦然?

0 投票
4 回答
603 浏览

emacs - 在 Emacs 中导航重复标签定义的最佳方法是什么?

在 emacs 中,导航到名称可能出现在多个不同文件中的特定函数的最佳选择是什么?在 etags 中,您只能一次循环浏览标签,如果您要查找的函数名称很受欢迎,这可能需要一段时间。

0 投票
4 回答
1600 浏览

emacs - 在 Emacs 中如何切换到其他缓冲区?

问题如下:我想自动化我的emacs启动方式。它必须分成两个缓冲区,并且 slime-repl 必须在最小(底部)缓冲区中启动。另外,我希望我的文件在更大(上)缓冲区中打开。在我的 .emacs 中有几行:

SLIME 在底部缓冲区中打开正常,但文件在后台缓冲区之一中打开,而我希望它在前面。

如何解决这个问题?

0 投票
2 回答
5192 浏览

emacs - Emacs - Ubuntu 初始化

在 ubuntu 上加载 emacs 的奇怪行为,似乎有一些初始化不在 .emacs 中,也不在 emacs 通过“emacs --debug-init”报告加载的任何文件中。我发现了一些与字体相关的调整大小的参考,但这种行为似乎并不局限于此(例如,重新出现菜单和工具栏)。

有没有人有任何关于 emacs 初始化过程的额外信息?它是否在 .emacs 之前或之后加载 /etc/emacs/site-start.d 文件,默认情况下是否加载其他位置?

0 投票
3 回答
2951 浏览

emacs - Emacs 中是否有适用于 Visual Basic (VB6) 的模式?

我想使用 Emacs 编辑一些 VB6 文件,但 Emacs 似乎没有任何其他语言的内置细节,例如语法突出显示等。

任何插件/扩展?我还能做些什么来使 Emacs 成为 VB 的可接受且舒适的 IDE?

0 投票
16 回答
89306 浏览

windows - 在哪里可以找到在 Windows 上运行的 Emacs 的 .emacs 文件?

我尝试为 Emacs 的 Windows 安装寻找 .emacs 文件,但我找不到它。它在 Windows 下是否与 Unix 下具有相同的文件名?

我必须自己创建吗?如果是这样,它在哪个特定目录下?

0 投票
10 回答
17311 浏览

visual-studio - 如何在 Visual Studio 中获得 Emacs 样式的键绑定?

如何在 Visual Studio 中获得 Emacs 样式的键绑定?它在设置中可用吗?我需要插件吗?