2022 Developer Survey is open! Take survey.

Hot answers tagged

29 votes
Accepted

How should I change my workflow when moving from IDO to Helm

UPDATED (Helm changes, personal config changes, and Tu Do comments). I switched from IDO to Helm few years ago and I never looked back. I find the presentation cleaner than let's say ido-vertical-...
user avatar
  • 634
28 votes
Accepted

How to widen helm buffer names in `helm-buffers-list`?

You should customize helm-buffer-max-length to an appropriate number. Default I believe is 20. If set to nil, helm will use the longest buffer name. You can access the customization setup by M-x ...
user avatar
  • 3,816
20 votes
Accepted

How do I make pressing <RET> in helm-find-files open the directory?

I've also used ido-mode a lot and trained my muscle memory :) I think the ido style is more intuitive than the helm approach. I search for stuff (typing in some characters) and commit to the find (hit ...
user avatar
  • 315
19 votes
Accepted

How can I get fuzzy code completion

Emacs's builtin completion functionality offers similar fuzzy matching (tho by default it's used for "do-so-am" rather than for "DoSoAm") and IIUC recent versions of company-mode do use this at least ...
user avatar
  • 25.2k
19 votes
Accepted

How to clear recent files list?

How do I remove the files that do not exist from recent files list? M-xrecentf-cleanupRET recentf-cleanup is an interactive compiled Lisp function in ‘recentf.el’. (recentf-cleanup) Cleanup the ...
user avatar
  • 11.3k
18 votes
Accepted

How to scroll through all available matching interactive (M-x) commands using Helm rather than just my history?

C-o is bound to helm-next-source by default. This will cycle through available sources. In this case, the sources are your command history and available commands. If you were at the top of your ...
user avatar
17 votes
Accepted

Helm: search within buffer feature?

You can use helm-occur as a tool that comes with the basic helm module for this. But to me, one of the best helm based tools for buffer searching is Shingo Fukuyama's helm-swoop. You can get it from ...
user avatar
  • 1,734
17 votes

Open file in new window after searching it with helm

I'm using Spacemacs (on Windows 10 if that matters) with the default keybindings. This may differ from your configuration, but I found the following ways to open files via Helm-Find-Files: Open Helm-...
user avatar
16 votes
Accepted

Mark and open multiple files with Helm and Projectile

Yes, use C-SPC to mark each file individually or mark all with M-a, then press RET to open all those files. I wrote a Helm guide here that covers Helm basics and most of default commands. Also check ...
user avatar
  • 6,652
16 votes
Accepted

Prevent helm from prompting to create a new buffer

You can set helm-ff-newfile-prompt-p to nil and Helm won't ask you anymore: (setq helm-ff-newfile-prompt-p nil)
user avatar
  • 6,652
15 votes

How can I use Helm File Finder to copy a file path to a buffer?

If yanking the path into the current buffer is not acceptable, use C-u C-c C-k, which invokes helm-kill-selection-and-quit. From the documentation of helm-kill-selection-and-quit: Store display ...
user avatar
  • 8,922
13 votes
Accepted

Is there any way to order helm results by commonly used?

There is an adaptive sorting option for Helm which sorts the result according to their usage frequency. According to the helm source code it can be activated with the minor mode helm-adaptive-mode: ...
user avatar
  • 1,058
13 votes

How to see recently opened files in helm

Indeed, if helm-ff-file-name-history-use-recentf set to true, helm-find-files is supposed to use recentf-list instead of file-name-history. To enable the recenf minor mode, I have those lines in my ...
user avatar
  • 5,981
12 votes

How to see recently opened files in helm

Perhaps this isn't quite what you're looking for, but I really like using helm-mini, which includes a small browser for recent open files (by calling helm-recentf as Nsukami suggests you use). Here ...
user avatar
  • 583
11 votes

helm-ag (or similar) find in javascript files only

If you use helm-ag command, you can specify option like -G\.js$ search_pattern, or if you use helm-do-ag, you can use C-u prefix for specifying extension. This is screencast. Thanks for using helm-...
user avatar
  • 456
11 votes

Does icicles offer features that Helm doesn't?

A good answer would be quite long. The short answer is yes. Each of Helm and Icicles offers features not offered by the other. They are not necessarily alternatives/competitors. You can use both. ...
user avatar
  • 69.2k
11 votes
Accepted

How to pass a prefix argument to helm-m-x?

helm-M-x is arguably unusual in this aspect. You first invoke it, type until you've picked the command you want to execute, then add the prefix argument by pressing C-u.
user avatar
  • 21k
10 votes
Accepted

Quicker way in Find-file with helm?

You can use Helm Projectile to jump around files in projects easily. There are some demos at the top of my guide. You can even treat any directory as a project and jump to anywhere by making an empty ....
user avatar
  • 6,652
10 votes
Accepted

How to change helm's highlight color

The name of the face helm uses to highlight the selected item is helm-selection. You can change just the background color of any face with set-background-color: (set-background-color 'helm-selection "...
user avatar
  • 12.1k
10 votes
Accepted

Restoring windows and layout after an Ediff session

What you want can be achieved cleanly using hook provided by ediff (which if read the documentation seem to be provided for this exact purpose), advices are not needed. The relevant hooks are 1) ...
user avatar
  • 7,278
10 votes

Recursive grep in directory with helm and/or projectile?

You have two ways: Use helm-projectile-grep/ack/ag: You can search for everything starting from project root. Later if you want to save the search results, press F3 or press TAB to switch to action ...
user avatar
  • 6,652
10 votes
Accepted

How can I use Helm File Finder to copy a file path to a buffer?

Try C-c TAB when you have the file highlighted. This will yank the path into the current buffer, which might be an undesired side effect, but as long as you do helm-find-files from the buffer you want ...
user avatar
  • 4,535
10 votes

How does Spacemacs allow tab completion in helm?

The "tab completion" that spacemacs does in helm is actually the helm command helm-execute-persistent-action. By default helm-execute-persistent-action is bound to C-z and TAB is bound to helm-select-...
user avatar
  • 378
9 votes
Accepted

Recursively find all files from a folder containing a regexp in the filename, using helm

On systems that provide GNU find utility, you can use helm-find (by default bound to C-x c /) to get the desired behavior. Starting helm-find with a prefix argument C-u C-x c / prompts for the ...
user avatar
  • 3,816
9 votes

How can I get fuzzy code completion

With company-mode, you can use C-s to search from available candidates that it display. The search query is displayed in the modeline (not really easy to spot, I know. I filed an issue here). If you ...
user avatar
  • 6,652
9 votes
Accepted

A search interface for org mode files

Org itself provides a facility for filtering/searching information stored in .org files in various ways. It is called the "Agenda". The org-mode manual provides extensive information on how ...
user avatar
  • 14.2k
9 votes
Accepted

How to use .dir-locals.el with Projectile?

.dir-locals.el does not care about the meaning of the variables that it sets, nor does it assume their values are lists (they do not have to be.) So it does not perform any merge or other processing. ...
user avatar
9 votes

How to tell Helm to ignore certain files?

I'm not sure when this functionality was introduced, but you can exclude files from helm-find-files by setting helm-ff-skip-boring-files to t and making sure the ignored pattern is on helm-boring-file-...
user avatar
  • 91
8 votes
Accepted

Can helm filter files by mode

helm-mini states in its help (which can be accessed with C-c ? while it's running) that a token prefixed with * is interpreted as substring match of a major mode. Therefore, entering *org gives you ...
user avatar
  • 21k
8 votes
Accepted

Helm swoop on all project files (not just current buffers)

Following the interesting comments from PythonNut, I installed helm-ag, and ran helm-projectile-ag from the projectile package via C-c p s s. I then switched to editing mode with C-c C-e. I changed a ...
user avatar
  • 1,736

Only top scored, non community-wiki answers of a minimum length are eligible