about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2014-10-21T17·38+0200
committerVincent Ambo <vincent@kivra.com>2014-10-21T17·38+0200
commit677eba3e60b5f1b1473524a83e4d73dae1cba99b (patch)
treec530b17cc1088b0967b649fda1d6cb9190737c52
parent1f70abb1769a3528f23bc96ee3f570338ace50d3 (diff)
Cleanup: remove evil stuff & others
(Also sneakily adds go-mode and haskell-mode back in)
-rw-r--r--init.el35
1 files changed, 4 insertions, 31 deletions
diff --git a/init.el b/init.el
index d91f536e151e..4a9a4e6c7c47 100644
--- a/init.el
+++ b/init.el
@@ -1,7 +1,3 @@
-;; Emacs 24 or higher!
-(when (< emacs-major-version 24)
-  (error "This setup requires Emacs v24, or higher. You have: v%d" emacs-major-version))
-
 ;; Configure package manager
 (require 'package)
 
@@ -25,6 +21,8 @@
     dash
     flx-ido
     flycheck
+    go-mode
+    haskell-mode
     idle-highlight-mode
     ido-ubiquitous
     iy-go-to-char
@@ -52,15 +50,6 @@
 )
   "A list of packages to install at launch.")
 
-(defvar evil-pkgs
-  '(evil
-    evil-leader
-    evil-tabs
-    evil-paredit
-    key-chord
-    surround)
-  "Evil related packages")
-
 (dolist (p my-pkgs)
   (when (not (package-installed-p p))
     (package-install p)))
@@ -71,19 +60,11 @@
 ;; Or on Linux?
 (setq is-linux (equal system-type 'gnu/linux))
 
-;; Is this being used by a vim user?
-(setq is-vim-mode nil)
-
 ;; What's the home folder?
 (defvar home-dir)
 (setq home-dir (expand-file-name "~"))
 
-(when is-vim-mode
-  (dolist (p evil-pkgs)
-    (when (not (package-installed-p p))
-      (package-install p))))
-
-(add-to-list 'load-path user-emacs-directory)
+(add-to-list 'load-path (concat user-emacs-directory "init"))
 
 (mapc 'require '(functions
                  settings
@@ -91,19 +72,11 @@
                  bindings
                  eshell-setup))
 
-(when is-vim-mode
-  (require 'init-evil))
+(add-to-list 'load-path (concat user-emacs-directory "scripts"))
 
 (setq custom-file (concat user-emacs-directory "init/custom.el"))
 (load custom-file)
 
-;; A file with machine specific settings.
-;(load-file-if-exists (concat home-dir "/.emacs.d/init-local.el"))
-
-;; IRC configuration
-;; Actual servers and such are loaded from irc.el
-; (load-file-if-exists (concat home-dir "/.emacs.d/init-irc.el"))
-
 ;; Load magnars' string manipulation library
 (require 's)