emacs - (message "%S" load-path) and (describe-variable load-path) give different results -
(message "%s" load-path)
, (describe-variable 'load-path)
give different results. several more path "/users/updogliu/.emacs.d/elpa/flycheck-20140323.828"
appeared in latter.
how can make (require 'flycheck)
use "describe" 1 load-path
?
to setup flycheck properly, not need require
flycheck. instead, enable global flycheck mode:
(add-hook 'after-init-hook #'global-flycheck-mode)
this enable flycheck supported languages.
to make (require 'flycheck)
work in init.el
, need add (package-initialize)
@ very beginning of init.el
.
(package-initialize)
sets emacs' built-in package system, includes adding packages load-path
. emacs calls automatically, after init.el
has been processed, hence use of after-init-hook
enable flycheck.
if added message
call init.el
without calling (package-initialize)
first, you'll hence see standard load-path
without of packages.
to make packages available in init.el
right away, need call (package-initialize)
manually, @ beginning of init.el
.
Comments
Post a Comment