Skip to content

Did you mean to open another file?

License

Notifications You must be signed in to change notification settings

emacsmirror/didyoumean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DidYouMean.el

Ask for the right file to open.

Port of EinfachToll/DidYouMean.

demo

Why

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.

Install

(straight-use-package '(didyoumean :type git :host gitlab :repo "kisaragi-hiu/didyoumean.el"))
(quelpa '(didyoumean :fetcher gitlab :repo "kisaragi-hiu/didyoumean.el"))

Manually

Put doyoumean.el under your load-path, then (require 'doyoumean) in your init file.

Enable

(didyoumean-mode 1)

Customize

  • didyoumean-ignored-suffixes: List of suffixes that will not be suggested.
  • didyoumean-custom-ignore-function: Custom predicate to not suggest some files.

License

MIT

Credits

The introduction paragraph, the core function (didyoumean), and the idea itself are all ported from the original (EinfachToll/DidYouMean).

Releases

No releases published

Packages

No packages published