-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path+auth.el
71 lines (67 loc) · 2.78 KB
/
+auth.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;;; ~/.doom.d/+auth.el -*- lexical-binding: t; -*-
;; * conda
;; (setq +python-conda-home
;; '("/usr/local/anaconda3"
;; "/ssh:xfu@hpc7.cse.cuhk.edu.hk:/research/kevinyip10/xfu/miniconda3"
;; "/ssh:xfu@hpc8.cse.cuhk.edu.hk:/research/kevinyip10/xfu/miniconda3"
;; "/ssh:xfu@hpc9.cse.cuhk.edu.hk:/research/kevinyip10/xfu/miniconda3"
;; "/ssh:xfu@hpc10.cse.cuhk.edu.hk:/research/kevinyip10/xfu/miniconda3"
;; "/ssh:xfu@hpc12.cse.cuhk.edu.hk:/research/kevinyip10/xfu/miniconda3"
;; "/ssh:xfu@hpc13.cse.cuhk.edu.hk:/research/kevinyip10/xfu/miniconda3"
;; "/ssh:xfu@hpc14.cse.cuhk.edu.hk:/research/kevinyip10/xfu/miniconda3"
;; "/ssh:xfu@hpc15.cse.cuhk.edu.hk:/research/kevinyip10/xfu/miniconda3"))
;; (when IS-WSL
;; (setq url-proxy-services '(("HTTP" . "192.168.8.116:1080")
;; ("http" . "192.168.8.116:1080")
;; ("HTTPS" . "192.168.8.116:1080")
;; ("https" . "192.168.8.116:1080")
;; ("SOCKS" . "192.168.8.116:1080")
;; ("socks" . "192.168.8.116:1080"))))
;; (when IS-MAC
;; (setq url-proxy-services '(("HTTP" . "127.0.0.1:1086")
;; ("http" . "127.0.0.1:1086")
;; ("HTTPS" . "127.0.0.1:1086")
;; ("https" . "127.0.0.1:1086")
;; ("SOCKS" . "127.0.0.1:1086")
;; ("socks" . "127.0.0.1:1086"))))
;; * tramp
(after! tramp-sh
(setq
;; this is critical
;; tramp-restricted-shell-hosts-alist
;; '("gw")
;; tramp-default-proxies-alist
;; '(("hpc7" nil "/ssh:gw:")
;; ("hpc8" nil "/ssh:gw:")
;; ("hpc9" nil "/ssh:gw:")
;; ("hpc10" nil "/ssh:gw:")
;; ("hpc11" nil "/ssh:gw:")
;; ("hpc12" nil "/ssh:gw:")
;; ("hpc13" nil "/ssh:gw:")
;; ("hpc14" nil "/ssh:gw:")
;; ("hpc15" nil "/ssh:gw:")
;; ("proj26" nil "/ssh:gw:")
;; ("proj35" nil "/ssh:gw:")
;; ("gpu7" nil "/ssh:gw:")
;; ("gpu8" nil "/ssh:gw:")
;; ("gpu9" nil "/ssh:gw:")
;; ("gpu10" nil "/ssh:gw:")
;; ("gpu11" nil "/ssh:gw:")
;; ("gpu12" nil "/ssh:gw:")
;; ("gpu13" nil "/ssh:gw:")
;; ("gpu14" nil "/ssh:gw:")
;; ("gpu15" nil "/ssh:gw:"))
tramp-remote-path
(append
'("/home/xf2217/miniconda3/bin"
"/research/kevinyip10/xfu/miniconda3/bin"
"/uac/gds/xfu/bin")
tramp-remote-path))
;; (setq
;; tramp-remote-process-environment
;; (append
;; tramp-remote-process-environment
;; '("http_proxy=http://proxy.cse.cuhk.edu.hk:8000"
;; "https_proxy=http://proxy.cse.cuhk.edu.hk:8000"
;; "ftp_proxy=http://proxy.cse.cuhk.edu.hk:8000")))
)