Use major mode instead of minor mode
Correct flycheck warnings

I use both emacs-lisp and emacs-lisp-checkdoc checkers.
Code simplification