问题标签 [emacs-helm]

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 回答
331 浏览

emacs - 如何在 Emacs Prelude 中创建与现有文件匹配的新文件?

在 Emacs Prelude 中,当存在与文件名“匹配”的文件时,我无法弄清楚如何创建新文件。

在示例屏幕截图中,我试图spawn.exs在已经包含一个名为spawn_basic.exs. 当我C-xC-f用来创建新文件时,emacs 匹配并spawn.exs在打开而不是创建.spawn_basic.exsEnterspawn_basic.exsspawn.exs

在此处输入图像描述

我尝试了一些解决方法(即使touch用来创建文件),但我正在寻找一种更简单的解决方案,只需要一个命令。如果没有执行此操作的命令,有没有办法禁用 Prelude 中的文件名匹配功能?与香草 Emacs 相比,我最喜欢 Prelude 的所有其他内容,所以我宁愿不切换回去。

0 投票
0 回答
593 浏览

emacs - Emacs helm-projectile-grep 和 Tramp 模式

当我尝试在 Emacs 中helm-projectile-grep使用Tramp模式时使用,然后跳转到选定的文件,该文件的路径错误地以/ssh:username@host-address:. 因此,结果是使用地址创建了一个新文件/ssh:username@host-address:/ssh:username@host-address:/home/username/file。注意,这/ssh:username@host-address:重复了两次。感谢有关克服问题的任何信息。

0 投票
0 回答
124 浏览

emacs - Emacs, "helm-grep-do-git-grep" ---> git --no-pager grep

Windows 10(64 位),Emacs 25.1。

我想使用命令helm-grep-do-git-grep在许多文件中查找文本。但是当我开始(在 git 文件夹中)这个命令时,我得到了错误:

git --no-pager grep...

这里截图:在此处输入图像描述

0 投票
2 回答
1317 浏览

file - Emacs。头盔包。如何在文件夹(不是 git 文件夹)和所有子文件夹中查找文件?

Windows 10(64 位)、Emacs 25.1、Helm 包。

要在任何文件夹(不是 git,不是项目文件)中查找文件(例如myfile.txt),我使用命令helm-find-file。这是工作。好的。

但现在我需要在当前文件夹和所有子文件夹中找到myfile.txt 。我如何通过helm包做到这一点?

0 投票
0 回答
229 浏览

emacs - 为什么我在禁用只读后无法编辑 Emacs 缓冲区 *hmoccur* 中的文本?

Windows 10(64 位)、Emacs 25.1、Helm 包。

假设我有一些包含单词test的文本。我运行命令“helm-occur”来找到这个词。这里的结果: 在此处输入图像描述

所以,现在我想将结果保存到缓冲区hmoccur。我使用Cx Cs。所以这里的结果。 在此处输入图像描述

如您所见,此缓冲区是只读的。所以我使用命令只读模式来禁用只读。这里的结果: 在此处输入图像描述

现在我想编辑这个缓冲区(添加字母“a”)。但我收到下一条奇怪的消息(a 未定义)。结果不打印字母“a”:在此处输入图像描述

0 投票
1 回答
1090 浏览

emacs - helm installation: Package emacs '24.4' unavailable

While installing helm in emacs, I have come across the error

Package emacs '24.4' unavailable

I am a noob to emacs and I have seen similar questions on stack, but the solution offered there doesn't not solve the problem.

Type M-x locate-library RET package to find where Emacs is getting its package.el from. The path it shows should end with lisp/emacs-lisp/package.elc. If it doesn't, try getting rid of the indicated file (or changing the load path so Emacs doesn't find it).

Can somebody help?

Below is my init.el file (configuration file)

My emacs version is 24.3.1 fresh install. I have loaded the init file a few times. I am on ubuntu 14.04

0 投票
1 回答
214 浏览

emacs - 使用 `emacs-helm-ag` 直接搜索文件名的交互式 Elisp 函数(-g 选项)

我使用emacs-helm-ag在项目中搜索文件内容和文件名。我的emacs-helm-ag配置是:

要搜索文件内容(所有项目文件中的一个词),我按下M-s s并输入要搜索的词。

要搜索文件名(项目所有文件列表中的文件),我按下M-s s然后我必须输入-g(我想自动执行此步骤),然后输入要搜索的文件名。

问题。请你帮我想出一个交互式功能,通过自动插入命令行选项(最好从包中重用)elisp直接在项目中搜索文件名,并且只需要最终用户输入文件名。我想要一个交互式函数来搜索项目中的文件名,并能够使用不同的键绑定调用该函数。类似于:-ghelm-do-ag-project-rootemacs-helm-ag

0 投票
1 回答
752 浏览

emacs - 为 emacs 设置 Helm-Projectile 的问题

我是emacs的新手,现在大约一个半星期。我在mac, high sierra, 10.13.2上。

我正在使用use-package.

我一直在尝试使用此链接helm-projectile等基本配置进行设置,但我无法开始工作(我是以前的 vim 用户,想要一个类似 ctrl-p 的设置)。helm-projectile-find-file

是我在运行时遇到的错误的屏幕截图helm-projectile-find-file

要清楚:

  • projectile-find-file工作正常
  • helm-projectile-find-file-in-known-projects工作正常
  • helm-projectile-switch-project工作正常
  • 等等

只是 helm-projectile-find-file那行不通。我很困惑为什么,我整个周末都在努力解决这个问题,所以任何帮助都将不胜感激。

这是我在.emacs配置文件中使用的相关设置

是我的完整.emacs配置文件的链接。

0 投票
0 回答
241 浏览

emacs - 为什么我似乎必须在 use-package init 与配置中定义此键绑定?

helm我的 Emacs 初始化文件和helm-swoop在我的 Emacs 初始化文件中有以下配置:

helm-swoop在无数的在线示例中,我已经看到在该部分中配置了两者的模式映射绑定config:,我似乎无法将其放入helm-swoop-mapinit:因为我得到一个 void symbol name 错误,但我必须放入isearch-mode-map绑定,init否则绑定不会在启动时设置。为什么会这样?

0 投票
0 回答
168 浏览

emacs - 在 Dired 中使用 Ivy 或 Helm 时 Emacs 冻结

我在 Windows 10 上使用 Emacs。当我使用 Dired 时,我可以毫无问题地打开 ( C-x C-f) 文件。但是当我使用 helm 或 ivy 打开文件时,它会变得非常慢,并且需要 10 多秒才能更改目录。当我想更改分区时,它会冻结。

这就是我在分析 CPU 和内存时得到的结果: cpu and memory profiling

这是我的 Emacs 配置,可能有一些我看不到的错误。 emacs config emacs 配置 我不知道如何从那里继续。也许你们可以提供一些帮助?