Make the FB stuff easier to reason about
This commit is contained in:
parent
a23fc9f865
commit
a89cc66ee3
1 changed files with 24 additions and 11 deletions
|
|
@ -52,18 +52,31 @@
|
||||||
;; =================================================================
|
;; =================================================================
|
||||||
(defconst master-dir (getenv "LOCAL_ADMIN_SCRIPTS"))
|
(defconst master-dir (getenv "LOCAL_ADMIN_SCRIPTS"))
|
||||||
(defconst engshare-master (getenv "ADMIN_SCRIPTS"))
|
(defconst engshare-master (getenv "ADMIN_SCRIPTS"))
|
||||||
(if (file-exists-p (expand-file-name "master.emacs" master-dir))
|
(defconst is-fb-environment
|
||||||
(load-library (expand-file-name "master.emacs" master-dir))
|
(or (file-exists-p (expand-file-name "master.emacs" master-dir))
|
||||||
(if (file-exists-p (expand-file-name "master.emacs" engshare-master))
|
(file-exists-p (expand-file-name "master.emacs" engshare-master))))
|
||||||
(load-library (expand-file-name "master.emacs" engshare-master))))
|
|
||||||
|
|
||||||
(if (and
|
(if is-fb-environment
|
||||||
(getenv "HOSTNAME")
|
(progn
|
||||||
(string-match-p ".+\.prn1\.facebook\.com" (getenv "HOSTNAME")))
|
;; Load the master.emacs file which apparently has stuff in it I want?
|
||||||
(setq url-proxy-services
|
(if (file-exists-p (expand-file-name "master.emacs" master-dir))
|
||||||
'(("no_proxy" . "^\\(localhost\\|10.*\\)")
|
(load-library (expand-file-name "master.emacs" master-dir))
|
||||||
("http" . "fwdproxy:8080")
|
(if (file-exists-p (expand-file-name "master.emacs" engshare-master))
|
||||||
("https" . "fwdproxy:8080"))))
|
(load-library (expand-file-name "master.emacs" engshare-master))))
|
||||||
|
|
||||||
|
;; Set up the proxy for working properly from the devserver.
|
||||||
|
(if (and
|
||||||
|
(getenv "HOSTNAME")
|
||||||
|
(string-match-p ".+\.prn1\.facebook\.com" (getenv "HOSTNAME")))
|
||||||
|
(setq url-proxy-services
|
||||||
|
'(("no_proxy" . "^\\(localhost\\|10.*\\)")
|
||||||
|
("http" . "fwdproxy:8080")
|
||||||
|
("https" . "fwdproxy:8080"))))
|
||||||
|
|
||||||
|
;; Hack support for stuff in www
|
||||||
|
(setq hack-for-hiphop-root (expand-file-name "www" "~"))
|
||||||
|
(load "/home/engshare/tools/hack-for-hiphop")
|
||||||
|
))
|
||||||
|
|
||||||
;; =================================================================
|
;; =================================================================
|
||||||
;; Common stuff that's needed once
|
;; Common stuff that's needed once
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue