31 votes
Accepted

how to jump directly to an org-headline?

The Org Manual node on Motion gives a somewhat laconic description of the built-in command org-goto (default binding: C-c C-j), whose behaviour can easily be customised to achieve the desired effect: ...
Basil's user avatar
  • 12.3k
31 votes

Ivy disable completion for a command in minibuffer

I think what you're looking for is C-M-j (ivy-immediate-done) in the mini buffer. This function is described as follows in the Ivy manual: Exits with the current input instead of the current ...
tirocinium's user avatar
16 votes

How can I stop the enter key from triggering a completion in company mode?

My complete setup for fixing this annoying default behavior is: ;;; Prevent suggestions from being triggered automatically. In particular, ;;; this makes it so that: ;;; - TAB will always ...
Resigned June 2023's user avatar
14 votes

Speeding up company mode?

I had also a bad experience with company at the beginning, but in my setup I just put these lines. (setq company-dabbrev-downcase 0) (setq company-idle-delay 0) The first variable is used to skip ...
user3347359's user avatar
11 votes
Accepted

Code auto completion with ivy

What you want can be achieved by adding a new source to completion-at-point-functions. This isn't specific to ivy, but ivy makes use of it: (defun dabbrev-complation-at-point () (dabbrev--reset-...
abo-abo's user avatar
  • 14.1k
9 votes

Can't get out of minibuffer completion

Is it possible there is an active recursive edit in the completion minibuffer? C-] by default is abort-recursive-edit. Alternatively keyboard-escape-quit or ESC ESC ESC might help?
dgtized's user avatar
  • 4,199
9 votes

how to jump directly to an org-headline?

I use the package worf, but I bind only one of its functions: (use-package worf :diminish worf-mode :bind (:map org-mode-map ("C-c h" . worf-goto))) worf-goto gives you a list of the ...
tirocinium's user avatar
9 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 "...
Dmitry's user avatar
  • 3,578
8 votes

How to write a function with an interactive choice of the value of the argument?

(defun foo (choice) "..." (interactive (list (completing-read "Choose: " '(("1" . "Cow") ("2" . "Rabbit") ("3" . "Dog")) nil t))) (message "You chose `%s'" choice) ...
Drew's user avatar
  • 77.1k
8 votes
Accepted

Tab completion in minibuffer: case insensitive

Sure. Set variable completion-ignore-case to t. Put this in your init file: (setq completion-ignore-case t) C-h v completion-ignore-case: completion-ignore-case is a variable defined in C source ...
Drew's user avatar
  • 77.1k
8 votes

Ivy disable completion for a command in minibuffer

There are multiple approaches to file navigation that apply here. Just to rephrase your statement: switch from ~/code/study to ~/other/code/study Easiest and most consistent: use ~ to switch to ~/...
abo-abo's user avatar
  • 14.1k
8 votes
Accepted

lsp-mode: How to use built-in clangd client?

EDIT: As of late December 2018, this is no longer required, and lsp-mode does the required setup automatically. It was fixed in this commit as far as I can tell. You need to call lsp-clients-register-...
Lorenz's user avatar
  • 144
7 votes

Is there Sublime Text - style command palette in Emacs?

I use helm-M-x. It's part of the package helm. You can view a command's description with helm-execute-persistent-action.
bertfred's user avatar
  • 1,729
7 votes
Accepted

Change *Completions* list to sort vertically?

There is the variable completions-format (since Emacs 23.2). Just set it to 'vertical.
Harald Hanche-Olsen's user avatar
7 votes
Accepted

Prompt with pre-populated minibuffer input

I think what you need is (read-string "input: " "awesome").
John Kitchin's user avatar
  • 11.8k
6 votes
Accepted

How to write a function with an interactive choice of the value of the argument?

The function you are looking for is read-char-choice. I cite the corresponding documentation: (read-char-choice PROMPT CHARS &optional INHIBIT-KEYBOARD-QUIT) Read and return one of CHARS, ...
Tobias's user avatar
  • 33.1k
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: ...
Basil's user avatar
  • 12.3k
5 votes

Can I do vim-like completions in emacs?

If you take a look at evil-maps.el, you'll see that it defines a few of Vim's completion commands: (define-key evil-insert-state-map "\C-n" 'evil-complete-next) (define-key evil-insert-state-map "\C-...
wasamasa's user avatar
  • 22.1k
5 votes

how to jump directly to an org-headline?

I find helm-org-rifle particularly nice. Also anything that takes imenu source will be able to display headers (e. g. Helm with imenu).
user673592's user avatar
5 votes

how to jump directly to an org-headline?

imenu is built into Emacs and can be paired with helm/ivy to provide the fuzzy search required. I'd recommend helm-org-rifle if you use helm, however.
monotux's user avatar
  • 201
4 votes

How to force completions buffer to appear in a side window?

You can change how the *Completions* buffer is displayed by adding an entry to display-buffer-alist. With the following snippet, Emacs will display the completions buffer in an existing non-current ...
bmag's user avatar
  • 1,713
4 votes
Accepted

Completing read a directory or an element from a list

You can try something like: (let* ((dir-table (apply-partially #'completion-table-with-predicate #'completion-file-name-table #'file-...
Stefan's user avatar
  • 26.4k
4 votes

Text completion suggestion in emacs

The most popular package seems to be company mode. From the README: Company is a modular completion mechanism. Modules for retrieving completion candidates are called back-ends, modules for ...
nispio's user avatar
  • 8,215
4 votes

Text completion suggestion in emacs

Look into "company mode" perhaps. It is not built in but it will give you a dropdown of completions. You can choose how those completions are filled in by using different backends. There is also ...
Jules's user avatar
  • 1,225
4 votes
Accepted

Alternative to pcomplete in org-mode?

It depends on how you've configured Emacs so that "completions just pop up", but possibly (add-hook 'completion-at-point-functions 'pcomplete-completions-at-point) will do it. If you use company for ...
Ista's user avatar
  • 1,178
4 votes

how to jump directly to an org-headline?

I use counsel-imenu; it will list the different heads, you can type some letters to narrow your selection and then just press <return>.
gnuvince's user avatar
  • 261
4 votes

how to jump directly to an org-headline?

Flagrant self-promotion, but you might like to try out orgnav. Which is my kind of alpha (but actively used by me) project for this purpose. orgnav searches headlines rather than content, can vary ...
Att Righ's user avatar
  • 775
4 votes

how to jump directly to an org-headline?

The swiper library has a new feature in 0.9.0, which is completion for headlines of files in your org-agenda-files. counsel-org-agenda-headlines Just need to setup your agenda files list in org ...
Darryl Hebbes's user avatar
4 votes

Aliases on minibuffer for quick switching of directories

There are several things you could do. Use pattern matching that abbreviates parts of the directory hierarchy or file name. Even vanilla Emacs lets you do this to some extent (e.g. with wildcard * ...
Drew's user avatar
  • 77.1k

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