Move all configuration to subfolder

This commit is contained in:
Vincent Ambo 2014-10-21 19:37:19 +02:00
parent 10057a887b
commit 1f70abb176
No known key found for this signature in database
GPG key ID: 66F505681DB8F43B
10 changed files with 14 additions and 39 deletions

4
.gitignore vendored
View file

@ -3,8 +3,8 @@
auto-save-list/
clones/
elpa/
init-irc.el
init-local.el
irc.el
local.el
other/
scripts/
themes/

View file

@ -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)

14
init.el
View file

@ -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.

View file

@ -72,4 +72,4 @@
;; Org-mode agenda keys
(global-set-key (kbd "C-c a") 'org-agenda)
(provide 'init-bindings)
(provide 'bindings)

View file

@ -89,4 +89,4 @@
(let ((inhibit-read-only t))
(erase-buffer)))
(provide 'init-eshell)
(provide 'eshell-setup)

View file

@ -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)

View file

@ -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)

View file

@ -77,4 +77,4 @@
;; Transparently open compressed files
(auto-compression-mode t)
(provide 'init-modes)
(provide 'modes)

View file

@ -240,4 +240,4 @@
(setq lpr-command "xpp")
(provide 'init-settings)
(provide 'settings)