diff options
| author | benj <benj@rse8.com> | 2018-04-12 17:09:32 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2018-04-12 17:09:32 -0700 |
| commit | 1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1 (patch) | |
| tree | db910e24cac1bdc1728919eb4b74551340f7b901 | |
| parent | c6d5aaf084ab622d441d2783a078cf99fe939e4b (diff) | |
| download | emacs-1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1.tar emacs-1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1.tar.gz emacs-1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1.tar.bz2 emacs-1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1.tar.lz emacs-1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1.tar.xz emacs-1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1.tar.zst emacs-1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1.zip | |
house cleaning to ensure smooth bootstrap
| -rw-r--r-- | init.el | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -22,16 +22,13 @@ ;;; GPG_AGENT_INFO ;;; ;;; Code: -(package-initialize) - ;; Suppress splash screen (setq inhibit-startup-message t) (add-to-list 'load-path (expand-file-name "settings" user-emacs-directory)) (add-to-list 'load-path (expand-file-name "utils" user-emacs-directory)) -(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) -(load custom-file) +(require 'setup-package) ;; Write backup files to own directory (setq backup-directory-alist @@ -41,15 +38,6 @@ ;; Are we on a mac? (setq is-mac (equal system-type 'darwin)) -;; Are we in gui or terminal? -(if (display-graphic-p) - ;; load the theme so we don't have a block of white for too long upon startup - (load-theme 'solarized-dark)) - -(require 'setup-package) -(require 'visual-regexp) -(require 'visual-regexp-steroids) - (defun init-install-packages() (packages-install '(ace-window @@ -82,7 +70,9 @@ scala-mode slime smart-mode-line + solarized-theme visual-regexp + visual-regexp-steroids web-mode yaml-mode yasnippet))) @@ -93,6 +83,17 @@ (package-refresh-contents) (init-install-packages))) +(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) +(load custom-file) + +;; Are we in gui or terminal? +(if (display-graphic-p) + ;; load the theme so we don't have a block of white for too long upon startup + (load-theme 'solarized-dark)) + +(require 'visual-regexp) +(require 'visual-regexp-steroids) + (require 'sane-defaults) (when is-mac |
