-;; We will need a set of directories for stuff
-;; Lets define some variables for them
-
-;; I might have special configuration based on various states
-;; First we set an own variable, as system-type from emacs directly is
-;; useless. gnu/linux and gnu/kfreebsd have extra /, which is plenty annoying
-;; when you want to use them in a path entry.
-(defun jj-system-type ()
- "Return a string depending on the OS we use"
- (interactive)
- (cond
- ((eq system-type 'darwin) "macosx")
- ((eq system-type 'gnu/linux) "linux")
- ((eq system-type 'gnu/kfreebsd) "kfreebsd")
- ((eq system-type 'cygwin) "cygwin")
- ((eq system-type 'windows-nt) "windows")))
-
-
-(defvar jj-dir (file-name-directory (or load-file-name (buffer-file-name)))
- "The master directory for Ganneffs emacs configuration and storage.
-Usually ~/.emacs.d/")
-(defvar jj-config-dir
- (expand-file-name "config" jj-dir)
- "Ganneffs main emacs configuration can be found here.")
-(defvar jj-emacs-config
- (expand-file-name "emacs.org" jj-config-dir)
- "Ganneffs main emacs configuration file.")
-(defvar jj-elisp-dir
- (expand-file-name "elisp" jj-dir)
- "This directory stores subdirs for local packages in Ganneffs emacs config.")
-(defvar jj-elisp-local-dir
- (expand-file-name "local" jj-elisp-dir)
- "This directory stores extra elisp files for Ganneffs emacs config.")
-(defvar jj-custom-file
- (expand-file-name "customized.el" jj-config-dir)
- "Changes from the customization interface in Ganneffs emacs config.")
-(defvar jj-cache-dir
- (expand-file-name "cache" jj-dir)
- "This directory stores cache files and other volatile data.")
-(defvar jj-backup-directory
- (expand-file-name (concat "emacs-autosave-" user-login-name) jj-cache-dir)
- "This directory stores backup files.")
-(defvar jj-theme-dir
- (expand-file-name "themes" jj-dir)
- "This directory stores theme files for Ganneffs emacs config")
-
-(defvar jj-sys-config
- (expand-file-name (concat system-name ".org") jj-config-dir)
- "Ganneffs System/Host specific emacs configiraton file.")
-(defvar jj-os-config
- (expand-file-name (concat (jj-system-type) ".org") jj-config-dir)
- "Ganneffs Operating system specific emacs configuration file.")
-(defvar jj-user-config
- (expand-file-name (concat user-login-name ".org") jj-config-dir)
- "Ganneffs username specific emacs configuration file.")
-(defvar jj-ev-config (expand-file-name
- (concat "emacs"
- (number-to-string emacs-major-version) ".org")
- jj-config-dir)
- "Ganneffs emacs version specific configuration file.")
-(defvar jj-color-style 'dark "Which color scheme of solarized to select. Dark or Light")
-
-;; Ensure that the cache directory hierarchy exists
-(if (not (file-exists-p jj-cache-dir))
- (make-directory jj-cache-dir))
-(if (not (file-exists-p jj-backup-directory))
- (make-directory jj-backup-directory))
-