I'm not familiar with elisp at present.
I put my local configuration into init-local.el and exclude it in .gitignore.
I use (require 'init-local nil t)
in init.el file before, however I think (require 'init-local)
could have the same effect when I review my init.el today.
So I have the question : What's the difference of (require 'init-local nil t)
and (require 'init-local)
?
;;; update
Thanks @phils and @DoMiNeLa10, after your comment and answer, I understand that it must be (require 'init-local nil t)
because the file init-local.el is optional, if I use (require 'init-local)
and the file init-local.el is missing I will get the error:
File is missing: Cannot open load file, No such file or directory, init-local
C-h f require
– phils Sep 4 '17 at 12:13C-h i
, choose Elisp,require
takes you to the Elisp manual, node Named Features, which tells you everything aboutrequire
. Also,C-h r load
takes you to the Emacs manual, node Lisp Libraries, which covers loading Lisp libraries in general. – Drew Sep 4 '17 at 12:56