diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2016-11-11 19:31:18 -0800 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2016-11-11 19:31:18 -0800 |
commit | eeef4bcf52ebab3044852fc7cac1b761d73a8b2c (patch) | |
tree | b250d50c3509b7de524d60e3cf4dcd482622b248 /emacs.d/init.el | |
parent | [Emacs] small changes to the style. (diff) | |
download | emacs.d-eeef4bcf52ebab3044852fc7cac1b761d73a8b2c.tar.gz |
[Emacs] renamed my custom files and load them with use-package.
The new names are more logical. They are loaded with `use-package', and the bindings are also set that way. For general bindings, we store them in the 'bindings.el' library.
Diffstat (limited to '')
-rw-r--r-- | emacs.d/init.el | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index 26cde75..67ceecf 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -9,20 +9,29 @@ (message "Refreshing ELPA package archives...") (package-refresh-contents)) +;; install the package 'use-package' unless it's already installed (unless (package-installed-p 'use-package) (progn - (package-refresh-contents) (package-install 'use-package))) +;; ... and load 'use-package' (require 'use-package) -(eval-and-compile - (add-to-list 'load-path (expand-file-name "lib" user-emacs-directory))) +(use-package config + :load-path (lambda () (expand-file-name "lib" user-emacs-directory))) -(use-package my-settings) -(use-package my-functions) +(use-package funcs + :load-path (lambda () (expand-file-name "lib" user-emacs-directory)) + :commands (fc/load-time) + :bind (("s-=" . fc/scale-up-font) + ("s--" . fc/scale-down-font) + ("s-0" . fc/reset-font-size))) + +(use-package bindings + :load-path (lambda () (expand-file-name "lib" user-emacs-directory))) (use-package server + ;; start emacs server if not already running :config (unless (server-running-p) (server-start))) |