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
17 votes
Accepted

How to tell Ido to get out of the way when I can already just paste the file name?

While an ido command is active (ido-find-file in this case), you can drop back to the non-ido version of the same command (find-file in this case) using the ido-default binding C-x C-f for ido-...
user avatar
  • 6,652
16 votes
Accepted

Recently opened files in ido-mode

Looking at the customization options for ido-mode (M-x customize-group RET ido RET), I don't see any options for enabling the cycling behavior you describe. You can, however, add the following to ...
user avatar
  • 14.2k
12 votes
Accepted

Is there a command `describe-command', similar to command `describe-function'?

Yes. Library help-fns+.el defines command describe-command. And it redefines describe-function so that it does describe-command if you give it a prefix arg. The library binds describe-command to C-h ...
user avatar
  • 69.1k
9 votes
Accepted

Fuzzy completion when inserting Unicode characters

As @wasamasa suggested, ido-ubiquitous should take care of completion when insert-char is used. There is a bug report that was closed in 2013, but I still see this behaviour with Emacs 24.4 and ido-...
user avatar
  • 5,206
9 votes

Is there a command `describe-command', similar to command `describe-function'?

apropos-command might be sufficiently close. It doesn’t offer describe-function’s tab completion, but it lets you search only through commands, and it takes you to their doc page.
user avatar
  • 22.3k
9 votes

How to create a new buffer with ivy-switch-buffer that shares a substring with an existing buffer?

You can use C-M-j which calls ivy-immediate-done to force the output to be exactly what you typed instead of having it complete to the the nearest match This and more information can be found in the ...
user avatar
  • 1,245
8 votes

Is there a command `describe-command', similar to command `describe-function'?

if you have smex installed, just call smex. Start to type, when the right one comes up, press C-h f.
user avatar
  • 1,706
8 votes
Accepted

Remove *.bak files from ido-mode minibuffer

ido-mode has built-in support for hiding files matching specific regexps. All you need to do is add \.bak to ido-ignore-files: (add-to-list 'ido-ignore-files "\.bak") After invoking ido-find-file, ...
user avatar
  • 14.2k
7 votes
Accepted

How do I bind keys in ido?

According to the source code, you need to modify keybindings via ido-setup-hook: ;; Customization ;; ------------- ;; ;; Customize the `ido' group to change the `ido' functionality. ;; ;; To modify ...
user avatar
  • 31k
7 votes
Accepted

how to switch to a new buffer with ido without needing to confirm?

Found the answer to this question with some additional digging, but I'll leave it up in case others have this question in the future. The variable in question is confirm-nonexistent-file-or-buffer. ...
user avatar
  • 31k
7 votes

Is there a command `describe-command', similar to command `describe-function'?

I can't find this built-in. It is fairly easy to make a wrapper around describe-function that only completes command names when called interactively. In the implementation below, I duplicated the ...
user avatar
7 votes
Accepted

How to replicate the "~/"-to-home & "//"-to-root behaviour in ido-find-file but for a custom directory?

I was just about to make a blog post about this (I'll do it later anyway): (defun oleh-ido-setup-hook () (define-key ido-file-dir-completion-map "~" (lambda () (interactive) (ido-...
user avatar
  • 13.6k
7 votes
Accepted

Have `projectile-find-file` fall back to `ido-find-file` outside of projects

Write your own command that checks: (defun maybe-projectile-find-file () (interactive) (call-interactively (if (projectile-project-p) #'projectile-find-file #'ido-find-file))) (...
user avatar
  • 6,384
6 votes

How to tell Ido to get out of the way when I can already just paste the file name?

Given you're dealing with full path names, other methods may work: use M-x ffap (find-file-at-point): it will automatically read the path name and open the file activate M-x compilation-shell-minor-...
user avatar
  • 1,031
6 votes
Accepted

Edit org-mode tags using ido or ivy completion

For those users of an ivy/counsel persuasion, the command counsel-org-tag (added in v0.6 AFAICT) enables ivy-backed completion (including multiple selection and deselection) of org-mode tags: ...
user avatar
  • 11.3k
6 votes
Accepted

Icomplete and Ido: Why are both in the codebase?

Ido is implemented in a way that would require a big rewrite for it to support completion in different context, not just the handful of the pre-defined ones. But it was born at the time when it was "...
user avatar
  • 3,258
5 votes

Is there a command `describe-command', similar to command `describe-function'?

If you are using helm and helm-M-x, you can press C-j on the commands to pop up their documentation.
user avatar
  • 159
5 votes
Accepted

How to enable ido-ubiquitous globally

From a comment at the top of ido-ubiquitous.el (the relevant part is in bold): To use this package, call ido-ubiquitous-mode to enable the mode, or use M-x customize-variable ido-ubiquitous-mode ...
user avatar
  • 8,922
5 votes
Accepted

Using ido or helm to auto complete email addresses in mu4e

The variable mu4e~contacts-for-completion stores a list of contacts that mu4e knows about. The contacts are conveniently stored as "name <email>" strings, which is the same thing you want to ...
user avatar
  • 372
5 votes
Accepted

Tell Dired to ignore file-at-point when invoking `ido-find-file` (`C-x C-f` in Ido mode)

If you are using ido-find-file and have configured ido to use the filename at point (e.g. you have ido-use-filename-at-point set to t or 'guess), you can prevent ido from using the name at point from ...
user avatar
  • 19.1k
5 votes

How to tell Ido to get out of the way when I can already just paste the file name?

Since there's always more than one way to do it, here's a variation on @abo-abo's idea that keeps ido completion active rather than falling back to the normal find command. (defun ido-yank () (...
user avatar
  • 19.1k
5 votes
Accepted

distinguish ido/ivy's virtual-buffers with equal names using directory?

According to https://github.com/abo-abo/swiper/issues/648, it's simply (setq ivy-virtual-abbreviate 'full) It's not quite as nice as opened buffers (where only the differing part is shown), but ...
user avatar
  • 1,045
5 votes
Accepted

Why ido mode automatically change current folder when create new file?

You should either set ido-auto-merge-work-directories-length to a negative value, or increase the number of seconds in ido-auto-merge-delay-time.
user avatar
  • 3,404
4 votes

ido mode not previewing buffers names on switch buffer C-x b

To activate ido mode, put this in your init file: ;; make buffer switch command auto suggestions, also for find-file command (ido-mode 1) Then, C-x b will call the ido version of switch buffer ...
user avatar
  • 5,991
4 votes
Accepted

When switching buffers, prevent emacs from automatically switching frame

There does not appear to be an option for this. The function to find a buffer does allow you to specify whether to look in all frames or only in the current frame: (get-buffer-window &optional ...
user avatar
  • 19.1k
4 votes

Fuzzy completion when inserting Unicode characters

To get snow capped mountain included when you just type mount, you may want to do: (push '(unicode-name (styles substring)) completion-category-overrides) Actually, maybe this substring style should ...
user avatar
  • 25.2k
4 votes
Accepted

How do I use TAB instead of Enter for completion in ido-mode?

You can control this by setting the variable ido-enable-prefix to t: (setq ido-enable-prefix t) From the documentation: Non-nil means only match if the entered text is a prefix of file name. ...
user avatar
  • 14.2k
4 votes

Recently opened files in ido-mode

Though the bindings have evolved over time, as of today, when you invoke ido-find-file or ido-find-file-read-only, you can use the following bindings available in the default configuration: M-o ...
user avatar
  • 141
4 votes

ido-find-file: lists of results in wrong order

Ido doesn't have very smart fuzzy matching by default. Essentially, if you put in horse Ido will try to match .*h.*o.*r.*s.*e.* against its candidates. This isn't really how we think about ...
user avatar
  • 6,661

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