diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2018-10-14 15:20:46 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2019-01-11 19:39:55 -0600 |
commit | 1d2596c4e1fae0bd1bfe93664697b4933e7c7c26 (patch) | |
tree | 807515c694a1ab10ce88a980dd33fefd9178bfbd /emacs/.emacs | |
parent | 4562825b5fcee68dcf939fc8d85fa5ac1f1336e1 (diff) |
emacs: add initial emacs configuration
Diffstat (limited to 'emacs/.emacs')
-rw-r--r-- | emacs/.emacs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/emacs/.emacs b/emacs/.emacs new file mode 100644 index 0000000..a20e51b --- /dev/null +++ b/emacs/.emacs @@ -0,0 +1,32 @@ +(defconst user-init-dir + (cond ((boundp 'user-emacs-directory) user-emacs-directory) + ((boundp 'user-init-directory) user-init-directory) + (t "~/.emacs.d"))) + +(defun load-user-file (file) + "Load a file in current user's configuration directory" + (load (expand-file-name file user-init-dir) t nil t)) + +; These lines must come first, before `(package-initialize)` +(require 'package) +(add-to-list 'package-archives (cons "melpa" "https://melpa.org/packages/") t) + +(package-initialize) + +(load-user-file "org-mode.el") +(load-user-file "treemacs.el") +(load-user-file "colors.el") + +(custom-set-variables + '(package-selected-packages + (quote + (treemacs + ample-theme + color-theme-sanityinc-tomorrow + material-theme + subatomic-theme + subatomic256-theme + )))) + +(custom-set-faces + '(default ((t (:family "Inconsolata" :foundry "PfEd" :slant normal :weight normal :height 140 :width normal))))) |