             ((eq system-type 'linux) "/usr")
             (t "/usr")))
 
-(setq rc-dir "~/.emacs.d/rc/")
+(setq rc-dir (concat user-emacs-directory "rc/"))
 
 (setq custom-file (concat rc-dir "custom.el"))
 (load custom-file 'no-error)


;; Location for external packages, include subdirs
;; When adding modes, put them under their own directory in site-lisp
(let ((default-directory "~/.emacs.d/site-lisp/"))
  (normal-top-level-add-subdirs-to-load-path))

;; (configure "init")

;; Use-package is a macro to lazily initialize, require and configure packages
;; https://github.com/jwiegley/use-package

(add-to-list 'load-path (concat user-emacs-directory "site-lisp/use-package"))
(require 'use-package)


