emacs.d / dss-user-specific-init.el

;;; idea from http://github.com/technomancy/emacs-starter-kit/blob/master/init.el
(setq dss-hostname (car (split-string system-name "\\.")))
(defvar dss-system-specific-config (concat dss-dotfiles-dir dss-hostname ".el"))
(defvar dss-user-specific-config (concat dss-dotfiles-dir user-login-name ".el"))
(defvar dss-user-specific-dir (concat dss-dotfiles-dir user-login-name "/"))
(add-to-list 'load-path dss-user-specific-dir)

(if (file-exists-p dss-system-specific-config) (load dss-system-specific-config))
(if (file-exists-p dss-user-specific-config) (load dss-user-specific-config))
(if (file-exists-p (concat dss-user-specific-dir "init.el"))
    (load (concat dss-user-specific-dir "init.el")))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(provide 'dss-user-specific-init)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.