I have some elips *.el
file in my ~/.emacs.d/gman/
folder, e.g. smart-inputp-methods.el
. This folder is added to my load path at the beginning of .emacs
file:
(add-to-list 'load-path "~/.emacs.d/gman")
Leter I importing it:
(require 'smart-input-methods)
Functions defined there successfully loaded, however Flycheck reports me error on that line, that file could not be found:
Cannot open load file: no such file or directory, smart-input-methods
This is quite annoying, how can I fix that?
flycheck
on Github does not have a file namedsmart-input-methods.el
Why do you believe this is a valid file name? github.com/flycheck/flycheck Googling for"smart-input-methods"
yields no results except for this particular thread -- which could mean that the file may not exist except in your own setup. If you createdsmart-input-methods.el
for your own purposes, then you will need to put(provide 'smart-input-methods)
at the bottom of the file in order to be able to userequire
later on.load-path
. On a separate note, that error is caused when a file isn't found, not when a file is missing theprovide
statement (that is a different error).provide
statement in my file. This script modifies internal Emacs keyboard layout to correspond with apple keyboard (when Russian input method selected). By the way, this error message also occurs when Irequire
something installed from MELPA.smart-input-methods.el
? There is runnable code only, e.g. input method is being modified when file evaluated, I could share the code if needed.