Created
November 30, 2017 11:25
-
-
Save fmnoise/1d0dc288914883bd1d38ef10b4fe8aff to your computer and use it in GitHub Desktop.
emacs modular config example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun init/packages () | |
(setq package-archives | |
'(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa" . "http://melpa.org/packages/"))) | |
(require 'package) | |
(package-initialize) | |
(package-refresh-contents) ;; comment later to | |
(setq my-packages | |
'( | |
;; list packages here | |
)) | |
(dolist (pkg my-packages) | |
(unless (package-installed-p pkg) | |
(package-install pkg)))) | |
(defun init/keybindings () | |
;; setup keybindings here | |
) | |
(defun init/setup () | |
(init/packages) | |
(init/keybindings) | |
;; your init calls here | |
) | |
(init/setup) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment