I have this line in my .emacs
file.
(add-hook 'ibuffer-mode-hook
#'(lambda ()
(ibuffer-switch-to-saved-filter-groups "default")))
The settings work fine for me. But flycheck says:
the function `ibuffer-switch-to-saved-filter-groups' is not known to be defined.
I think if I declare the function ahead, the warning would go away. But ibuffer
is a build-in package, and I cannot find a way to declare this function.
How to declare a built-in function?
Update
I found the ibuffer-switch-to-saved-filter-groups
is not a built-in function, but is defined in a file called ibuf-ext.el
, and locate-library
can find this file from my environment path. But even after I defined declare-function
like below:
(declare-function ibuffer-switch-to-saved-filters "ibuf-ext.el" nil)
I still get this warning from flycheck.