2011-01-01 03:11:16 +01:00
|
|
|
;; -*- mode: Emacs-Lisp; -*-
|
2010-12-05 12:41:38 +01:00
|
|
|
|
2011-02-21 00:27:43 +01:00
|
|
|
(setq load-dir "~/.emacs.d/")
|
2011-04-14 20:48:36 +02:00
|
|
|
(setq elisp-dir (concat load-dir "elisp/"))
|
2010-12-05 12:41:38 +01:00
|
|
|
|
2011-04-14 20:48:36 +02:00
|
|
|
(setq my-elisp-files
|
|
|
|
(directory-files elisp-dir nil "\\.el$"))
|
|
|
|
(setq my-files (directory-files load-dir nil "^[0-9]\\{2\\}-\.*el$"))
|
|
|
|
|
|
|
|
;; Compile 3rd party elisp files
|
|
|
|
(byte-recompile-directory elisp-dir)
|
|
|
|
(while my-elisp-files
|
|
|
|
(let ((my-elisp-file-name (concat elisp-dir (car my-elisp-files))))
|
|
|
|
(if (not (file-exists-p (concat my-elisp-file-name "c")))
|
|
|
|
(byte-compile-file my-elisp-file-name))
|
|
|
|
(setq my-elisp-files (cdr my-elisp-files))))
|
|
|
|
|
|
|
|
;; Compile my elisp files
|
|
|
|
(byte-recompile-directory load-dir)
|
|
|
|
(while my-files
|
|
|
|
(let ((my-file-name (concat load-dir (car my-files))))
|
|
|
|
(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)))
|
|
|
|
(setq my-files (cdr my-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-03-17 11:16:50 +01:00
|
|
|
'(org-agenda-files (quote ("~/org/notes.org" "~/Documents/main.org" "~/Documents/aethon/aethon.org")))
|
2011-03-07 09:03:50 +01:00
|
|
|
'(safe-local-variable-values (quote ((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)
|