about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2014-10-21T17·37+0200
committerVincent Ambo <vincent@kivra.com>2014-10-21T17·37+0200
commit1f70abb1769a3528f23bc96ee3f570338ace50d3 (patch)
tree9517f6eab292a13cdd4a4cfb7768471aace41a3c
parent10057a887b931b25d93691992c35665cac277fcb (diff)
Move all configuration to subfolder
-rw-r--r--.gitignore4
-rw-r--r--init-evil.el23
-rw-r--r--init.el14
-rw-r--r--init/bindings.el (renamed from init-bindings.el)2
-rw-r--r--init/custom.el (renamed from init-custom.el)0
-rw-r--r--init/eshell-setup.el (renamed from init-eshell.el)2
-rw-r--r--init/functions.el (renamed from init-functions.el)2
-rw-r--r--init/misc.el (renamed from init-misc.el)2
-rw-r--r--init/modes.el (renamed from init-modes.el)2
-rw-r--r--init/settings.el (renamed from init-settings.el)2
10 files changed, 14 insertions, 39 deletions
diff --git a/.gitignore b/.gitignore
index 620c180555b5..0f9b0bae467f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,8 +3,8 @@
 auto-save-list/
 clones/
 elpa/
-init-irc.el
-init-local.el
+irc.el
+local.el
 other/
 scripts/
 themes/
diff --git a/init-evil.el b/init-evil.el
deleted file mode 100644
index ae2e9fd03152..000000000000
--- a/init-evil.el
+++ /dev/null
@@ -1,23 +0,0 @@
-; Basic vim emulation
-
-(evil-mode t)
-; (global-evil-tabs-mode 1)
-
-(evil-ex-define-cmd "Exp[lore]" 'dired-jump)
-(evil-ex-define-cmd "color[scheme]" 'customize-themes)
-
-(evil-define-key 'normal global-map
-  "\\\\w" 'evil-ace-jump-word-mode)
-
-(evil-define-key 'normal clojure-mode-map
-  "\M-q" 'paredit-reindent-defun
-  "gK" 'nrepl-src
-  "K"  'ac-nrepl-popup-doc)
-
-(setq evil-default-cursor '("#ffdd33"))
-
-;;; Uncomment these key-chord lines if you like that "remap 'jk' to ESC" trick.
-;; (key-chord-mode t)
-;; (key-chord-define evil-insert-state-map "jk" 'evil-normal-state)
-
-(provide 'init-evil)
diff --git a/init.el b/init.el
index 90fc92c09cff..d91f536e151e 100644
--- a/init.el
+++ b/init.el
@@ -85,18 +85,16 @@
 
 (add-to-list 'load-path user-emacs-directory)
 
-(mapc 'require '(init-functions
-                 init-settings
-                 init-modes
-                 init-bindings
-                 init-eshell))
+(mapc 'require '(functions
+                 settings
+                 modes
+                 bindings
+                 eshell-setup))
 
 (when is-vim-mode
   (require 'init-evil))
 
-(add-to-list 'load-path "~/.emacs.d/scripts/")
-
-(setq custom-file "~/.emacs.d/init-custom.el")
+(setq custom-file (concat user-emacs-directory "init/custom.el"))
 (load custom-file)
 
 ;; A file with machine specific settings.
diff --git a/init-bindings.el b/init/bindings.el
index 9a4157ba193e..d29081d1720b 100644
--- a/init-bindings.el
+++ b/init/bindings.el
@@ -72,4 +72,4 @@
 ;; Org-mode agenda keys
 (global-set-key (kbd "C-c a") 'org-agenda)
 
-(provide 'init-bindings)
+(provide 'bindings)
diff --git a/init-custom.el b/init/custom.el
index 18af68c890e0..18af68c890e0 100644
--- a/init-custom.el
+++ b/init/custom.el
diff --git a/init-eshell.el b/init/eshell-setup.el
index 69c710486530..43b1c16b33d6 100644
--- a/init-eshell.el
+++ b/init/eshell-setup.el
@@ -89,4 +89,4 @@
   (let ((inhibit-read-only t))
     (erase-buffer)))
 
-(provide 'init-eshell)
+(provide 'eshell-setup)
diff --git a/init-functions.el b/init/functions.el
index 233d40dd8b2e..e26e1f1bea62 100644
--- a/init-functions.el
+++ b/init/functions.el
@@ -99,4 +99,4 @@ Including indent-buffer, which should not be called automatically on save."
       (find-file (concat "/sudo:root@localhost:" (ido-read-file-name "File: ")))
     (find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name))))
 
-(provide 'init-functions)
+(provide 'functions)
diff --git a/init-misc.el b/init/misc.el
index 87343205b771..940370493007 100644
--- a/init-misc.el
+++ b/init/misc.el
@@ -6,4 +6,4 @@
 ;; Use aspell for spell checking: brew install aspell --lang=en
 (setq ispell-program-name "/usr/local/bin/aspell")
 
-(provide 'init-misc)
+(provide 'misc)
diff --git a/init-modes.el b/init/modes.el
index 9141404b7421..a28ece3e57f0 100644
--- a/init-modes.el
+++ b/init/modes.el
@@ -77,4 +77,4 @@
 ;; Transparently open compressed files
 (auto-compression-mode t)
 
-(provide 'init-modes)
+(provide 'modes)
diff --git a/init-settings.el b/init/settings.el
index 9601752ec61b..8d1b7fbace5b 100644
--- a/init-settings.el
+++ b/init/settings.el
@@ -240,4 +240,4 @@
 (setq lpr-command "xpp")
 
 
-(provide 'init-settings)
+(provide 'settings)