3

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 "fashionable" to get things into Emacs, and since it's still popular, it can't be removed outright either. As for replacing, though, the developers are going in ...


2

Are you sure you executed the code? I just tried: (push '(org-tags-view . completing-read-default) ivy-completing-read-handlers-alist) and it worked as expected. Responding to the comment: Indeed when calling it from org-agenda it does not work. As you supposed, this is because this-command is changed to org-agenda. As you probably don't want affect ...


2

I recommend ido-mode. It changes how completing-read works, adding an inline display of possible matches, and adding several extra keyboard commands for manipulating the list. There are quite a lot of them, but the one I use most frequently is probably C-s, which cycles the current list of matches so that the next one is selected. In your example, C-x b sh ...


2

Yes, vanilla Emacs is weak/broken wrt option completion-ignored-extensions. If you use Icicles there is no such problem. When a file name is ignored it is ignored completely; it is not shown in *Completions*. And in Icicles you can toggle this ignoring off or on at any time during completion, using C-. in the minibuffer. See Icicles - File-Name ...


2

Your completion-function is a function, but not a proper completion table (it does not obey all the expected behavior). I recommend you use completion-table-dynamic to build a proper completion table function from a function that simply lists all the possible completions. E.g. (defun my-completion-function (prefix) ;; You can just ignore the prefix '("...


2

Use icomplete-mode - the builtin incremental minibuffer completion mode. It continuously displays a list of possible completions as soon as you type in minibuffer. Then M-x oc-m and C-j to accept completion candidate.


1

Looks like your symlink is a finder alias and not a symlink. OSX Finder handles both of them the same way, but at system level the finder alias is a plain file. Substitute the finder alias for a proper unix symlink using ln -s command and it should work.


1

You can try (setq swiper-stay-on-quit t). When you hit C-g you'll be redirected to the location selected by swiper.


1

What troubles me here is that the totally nebulous computation that I removed did not affect anything. And for a reason. The temp-buffer-max-height variable does not have any effect unless another variable, namely temp-buffer-resize-mode, is set to t. Both variables are customizable. This is kind of documented with the temp-buffer-max-height variable help: ...


1

The question seems unclear. What is "isearch shell"? You seem to be using TAB during Isearch and expecting completion against previous search strings (?). If so, the key you want is C-M-TAB (not TAB), which is bound to isearch-complete in isearch-mode-map. But you say "complete a word", not complete against a previous search pattern, so the question ...


1

This answer is for using command icicle-find-file-absolute, which is similar in most regards to icicle-locate. But icicle-locate uses a prefix arg differently, passing it to system-command locate. So icicle-locate doesn't handle the use of a prefix arg to make multi-completion candidates include also a last modification-date middle component. (Command ...


1

Insert below code into ~/.emacs to enable company-ispell in comment, (defun my-in-comment-p (pos) "Check whether the code at POS is comment by comparing font face." (let* ((fontfaces (get-text-property pos 'face))) (if (not (listp fontfaces)) (setq fontfaces (list fontfaces))) (delq nil (mapcar #'(lambda (f) ...


1

(defconst sample-completions '(("a" "a" "ɑ" "æ" "ɐ" "ɑ̃") ("f" "o" "r"))) (defun company-sample-backend (command &optional arg &rest ignored) (interactive (list 'interactive)) (case command (interactive (company-begin-backend 'company-sample-backend)) (prefix (and (eq major-mode 'fundamental-mode) (company-grab-symbol))) (...


1

You can get something like this with ivy, but you might have to write some code to get exactly what you want. Here, I get the files in the current directory, and construct a list of candidates that looks like "filename | directory". If you want them on separate lines, replace | with \n. Then you use ivy-read to get completion. If you want a buffer where you ...


1

Yes: just put (savehist-mode 1) in your ~/.emacs and that should do the trick. [ Tho not quite in the way you describe: c will still not be among the completion candidates. But it will be in your history and hence accessible via M-p, M-s, ... ]


1

I'm not really sure what you're trying to do, but maybe this will help: (defun foo () "..." (interactive) (minibuffer-with-setup-hook #'minibuffer-complete (call-interactively #'imenu))) (global-set-key (kbd "<f4>") 'foo)


1

Jumping to a bookmark with Bookmark+ is like doing the same with vanilla Emacs. Completion of a bookmark name uses standard Emacs function completing-read to read the name. This means that you either have to use a key (e.g. TAB) to initiate completion, or you have to use some completion library that lets you make completing-read initiate completion ...


1

Here is my code. Yes the documentation is awful for phpactor and it takes some digging. I have this currently and it shows how to use transients and bind them to a key in php-mode. Hopefully useful to someone. (use-package transient :ensure t) (use-package phpactor :ensure t) (use-package company-phpactor :ensure t) (use-package php-mode ...


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