summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2018-04-12 17:09:32 -0700
committerbenj <benj@rse8.com>2018-04-12 17:09:32 -0700
commit1ac4f1ce206ec301236d7c0b75e1f9ce58cd79c1 (patch)
treedb910e24cac1bdc1728919eb4b74551340f7b901
parentc6d5aaf084ab622d441d2783a078cf99fe939e4b (diff)
downloademacs-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.el27
1 files changed, 14 insertions, 13 deletions
diff --git a/init.el b/init.el
index 6d4c7b7..7df7ed5 100644
--- a/init.el
+++ b/init.el
@@ -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