2011-01-01 03:11:16 +01:00
|
|
|
;; -*- mode: Emacs-Lisp; -*-
|
2011-04-18 10:30:35 +02:00
|
|
|
(add-to-list 'load-path "~/.emacs.d/elisp")
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/naquadah-theme")
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/elisp/markdown-mode")
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/elisp/git-commit-mode")
|
2010-12-05 12:41:38 +01:00
|
|
|
|
2011-04-15 09:48:38 +02:00
|
|
|
(setq d-dir "~/.emacs.d/")
|
|
|
|
(setq elisp-dir (concat d-dir "elisp/"))
|
2010-12-05 12:41:38 +01:00
|
|
|
|
2011-05-27 21:46:43 +02:00
|
|
|
(setq d-el-files (directory-files d-dir nil "^[0-9]\\{2\\}-\.*el$"))
|
|
|
|
(setq elisp-el-files (directory-files elisp-dir nil "\\.el$"))
|
2011-04-14 20:48:36 +02:00
|
|
|
|
|
|
|
;; Compile 3rd party elisp files
|
|
|
|
(byte-recompile-directory elisp-dir)
|
2011-05-27 21:46:43 +02:00
|
|
|
(while elisp-el-files
|
|
|
|
(let ((my-elisp-file-name (concat elisp-dir (car elisp-el-files))))
|
2011-04-14 20:48:36 +02:00
|
|
|
(if (not (file-exists-p (concat my-elisp-file-name "c")))
|
|
|
|
(byte-compile-file my-elisp-file-name))
|
2011-05-27 21:46:43 +02:00
|
|
|
(setq elisp-el-files (cdr elisp-el-files))))
|
2011-04-14 20:48:36 +02:00
|
|
|
|
|
|
|
;; Compile my elisp files
|
2011-04-15 09:48:38 +02:00
|
|
|
(byte-recompile-directory d-dir)
|
2011-05-27 21:46:43 +02:00
|
|
|
(while d-el-files
|
|
|
|
(let ((my-file-name (concat d-dir (car d-el-files))))
|
2011-04-14 20:48:36 +02:00
|
|
|
(if (not (file-exists-p (concat my-file-name "c")))
|
|
|
|
(byte-compile-file my-file-name))
|
|
|
|
(load (substring my-file-name 0 (- (length my-file-name) 3)))
|
2011-05-27 21:46:43 +02:00
|
|
|
(setq d-el-files (cdr d-el-files))))
|
2010-12-05 12:41:38 +01:00
|
|
|
|
|
|
|
(add-to-list 'compilation-finish-functions 'my-comp-finish-function)
|
|
|
|
|
|
|
|
(custom-set-variables
|
2011-02-21 00:27:43 +01:00
|
|
|
;; custom-set-variables was added by Custom.
|
|
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
|
|
;; Your init file should contain only one such instance.
|
|
|
|
;; If there is more than one, they won't work right.
|
2011-04-26 09:29:03 +02:00
|
|
|
'(org-agenda-files (quote ("~/documents/org/main.org")))
|
2011-05-27 21:41:12 +02:00
|
|
|
'(safe-local-variable-values (quote ((Mode . shell-script) (ispell-local-dictionary . nl)))))
|
2010-12-05 12:41:38 +01:00
|
|
|
(custom-set-faces
|
2011-02-21 00:27:43 +01:00
|
|
|
;; custom-set-faces was added by Custom.
|
|
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
|
|
;; Your init file should contain only one such instance.
|
|
|
|
;; If there is more than one, they won't work right.
|
|
|
|
)
|
2011-04-14 15:38:54 +02:00
|
|
|
(put 'narrow-to-region 'disabled nil)
|