Ask for the right file to open.
Port of EinfachToll/DidYouMean.
You want to edit hello.c
from the terminal. You type emacs he
TAB RET expecting your shell to expand it to the right file name. Emacs opens up an empty hello.
because there is a hello.h
in the same folder. This package makes Emacs ask you which of these files you actually want to edit.
(straight-use-package '(didyoumean :type git :host gitlab :repo "kisaragi-hiu/didyoumean.el"))
(quelpa '(didyoumean :fetcher gitlab :repo "kisaragi-hiu/didyoumean.el"))
Put doyoumean.el
under your load-path
, then (require 'doyoumean)
in your init file.
(didyoumean-mode 1)
didyoumean-ignored-suffixes
: List of suffixes that will not be suggested.didyoumean-custom-ignore-function
: Custom predicate to not suggest some files.
MIT
The introduction paragraph, the core function (didyoumean
), and the idea itself are all ported from the original (EinfachToll/DidYouMean).