behrica / behrica-pack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Pack Template

This is a template for your own user (or other purpose) pack.

init.el

Use the file init.el for your own configuration elisp. If this starts getting unwieldy then you might want to break out the config into separate files which you can store in the config directory.

config

Files placed in the config dir may then be referenced and pulled into your init.el via the fn live-load-config-file. For example, if you have the file config/foo.el then you may load it in with:

(live-load-config-file "foo.el")

lib

If you want to pull in external libraries into your pack, then you should place the libraries within the lib dir. To add a directory within the pack's lib directory to the Emacs load path (so that it's contents are available to require) you can use the fn live-add-pack-lib. For example, if you have the external library bar stored in lib which contains the file baz.el which you wish to require, this may be achieved by:

(live-add-pack-lib "bar")
(require 'baz)

Have fun!

About


Languages

Language:Emacs Lisp 83.2%Language:HTML 6.0%Language:Python 5.2%Language:TeX 2.8%Language:R 1.7%Language:Assembly 0.4%Language:Makefile 0.3%Language:Shell 0.2%Language:CSS 0.1%Language:Julia 0.0%Language:Perl 0.0%Language:SAS 0.0%Language:C++ 0.0%