22 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 ...
Basil's user avatar
  • 12.4k
18 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-...
Jason Down's user avatar
12 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-...
Moyamo's user avatar
  • 398
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.
wasamasa's user avatar
  • 22.2k
11 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. ...
Yuri Steinschreiber's user avatar
10 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-...
Derek's user avatar
  • 101
10 votes
Accepted

Helm won't let me select available emacs commands

You can press C-o to switch to the other list (I also found this behaviour unintuitive when I started using Helm). Alternatively, if you want to always be able to move to the Emacs Command list, ...
Daniel's user avatar
  • 3,653
9 votes
Accepted

How to move to the next source offered by helm mini?

Is there a way to jump in helm mini directly to the next source? Yes, you can do it via C-o (helm-next-source) in all helm commands. The following is copied from helm's documentation (you can access ...
xuchunyang's user avatar
  • 14.5k
9 votes
Accepted

helm-projectile-ag use thing-at-point as input?

Found it. The setting is (setq helm-ag-insert-at-point 'symbol) Reference: https://github.com/syl20bnr/spacemacs/issues/1848#issuecomment-108973505
user10375's user avatar
  • 245
8 votes

Open helm search result in a new window?

C-z will bring up a new buffer with actions available to helm, and I see the following: [f1] Open file [f2] Open file other window [f3] Save results in buffer [f4] Edit search results So you want C-...
Mitchell Tracy's user avatar
7 votes

Helm: helm-find-files: how find files recursive?

Just type TAB, input shell and RET use Find shell command to find files with filename recursively. Or simply C-c /
muyinliu's user avatar
7 votes

Show a list of names for all git projects

One existing approach is: https://magit.vc/manual/magit/Repository-List.html#Repository-List. After setting magit-repository-directories, you can use M-x magit-list-repositories to display these ...
xuchunyang's user avatar
  • 14.5k
6 votes
Accepted

Global Modes not consistent?

Your main question isn't really about global modes at all. global-linum-mode is (auto) loaded in Emacs by default, and so is available to all Emacs users at all times. projectile-global-mode is in a ...
phils's user avatar
  • 51.2k
6 votes

GNU Global + ggtags and helm + helm+gtags

Hope this clears up the confusion .. Non-emacs software GNU Global (gtags + global executables) - A software for generating tags, like Universal ctags. I actually use gtags for binary database ...
Kaushal Modi's user avatar
  • 25.7k
6 votes
Accepted

Dired up to parent directory on symlink

I don't know of a command to do this, or a setting that you can modify to make ^ do it. I'm on MS Windows without symlinks, but you might try defining a command that uses the same definition as dired-...
Drew's user avatar
  • 77.5k
6 votes
Accepted

how to restore last helm session?

You can use helm-resume to resume last helm session, and with prefix argument, you can even list all past helm sessions that can be resumed. See also https://github.com/emacs-helm/helm/wiki/Resume.
xuchunyang's user avatar
  • 14.5k
6 votes
Accepted

Helm swoop: How to invert match

If you begin the pattern with an exclamation point, it will match lines that do not match the pattern. So !window will match all lines that do not have window on them. This is a helm feature, so you ...
zck's user avatar
  • 9,092
6 votes
Accepted

disable line numbers in helm buffers , emacs 26

To only enable line numbers in "buffers that have code", you could add a hook to prog-mode-hook: (add-hook 'prog-mode-hook #'display-line-numbers-mode) (or whatever line numbering mode/function you'...
dieggsy's user avatar
  • 475
6 votes

How to toggle regex for helm/ivy user input?

If it's not possible for helm, how about ivy/counsel/swiper? Ivy is the library which Swiper search and Counsel convenience functions are backed by, so changing the way Ivy interprets its input ...
Basil's user avatar
  • 12.4k
6 votes

How can I pass the NO-LINE-BREAK argument to base64-encode-region in M-x?

If you copy the following lisp code to your init file and restart emacs you can call base64-encode-region with universal prefix argument C-u to get the base64 encoded string without linebreaks: ...
Tobias's user avatar
  • 33.2k
5 votes
Accepted

Helm-mode change default keybinding for "helm-find-files-*" * -> "down-one-level" (?)

When running helm-find-files, you should be able to use C-h k C-j to find out what command will be run by C-j, for me, it gives: C-j runs the command helm-execute-persistent-action (found in helm-...
xuchunyang's user avatar
  • 14.5k
5 votes
Accepted

How to open a file with tramp mode when Helm is active?

the way it works for me is the following: call helm-find-files (usually C-xC-f) write /scp: if you have used tramp before you get a list with previous locations which you can select with C-j (or type ...
djames's user avatar
  • 66
5 votes
Accepted

Helm - select with Tab instead of Enter?

You could add this to your init file: (with-eval-after-load 'helm (define-key helm-map (kbd "TAB") #'helm-maybe-exit-minibuffer)) This should work in all cases except where a given helm source ...
nispio's user avatar
  • 8,225
5 votes

Autocompletion when creating Internal Links in Org-mode

The Org mode info manual has a footnote on (org) Internal links, see the orgmode manual: (1) To insert a link targeting a headline, in-buffer completion can be used. Just type a star followed by a ...
p_wiersig's user avatar
  • 1,071
5 votes
Accepted

Projectile indexing won't work on Windows

This question does not seem to be about Projectile or Helm, but more generally about using grep/find with Emacs on Windows. Have you tried any of the built-in Emacs commands like rgrep, find-grep-...
glucas's user avatar
  • 20.6k
5 votes

How do I move the cursor in helm?

You can use the standard Emacs commands C-f and C-b for forward and backward char. It's convenient to learn those, as you can also navigate canditates with C-n and C-p. You can also use C-l to go up ...
Daniel's user avatar
  • 3,653
5 votes
Accepted

Use Helm for Org Refile Completion

Here are my settings. I got a lot of help on this from Aaron Bieber's discussion. (setq org-refile-targets '((org-agenda-files :maxlevel . 8) ("~/.emacs.d/config.org" :...
mclear's user avatar
  • 1,555
4 votes
Accepted

How to find files by content across lines with helm

You can use helm-ff-do-grep inside helm-find-files session. Inside helm-find-files session. You can invoke helm-ff-run-grep with C-s and C-u as prefix argument. Then choose where/what to search then ...
azzamsa's user avatar
  • 634
4 votes
Accepted

Run a helm command from a running helm session?

(helm-run-after-exit FUNCTION &rest ARGS) helm-run-after-exit exits current helm session, and then runs FUNCTION, so this is what you want: (defun es/helm-mini-or-projectile-find-file () (...
xuchunyang's user avatar
  • 14.5k
4 votes
Accepted

How can I predefine helm search patterns?

In general, you should be able to bind a macro to any key for a specific task as long as you know the corresponding keymap. For example: (define-key helm-map (kbd "C-c l") (kbd "../")) Now, C-cl ...
PythonNut's user avatar
  • 10.4k

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