-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug-windows.el
34 lines (30 loc) · 1.24 KB
/
debug-windows.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
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
(add-to-list
'package-archives
(cons "org" (concat proto "://orgmode.org/elpa/")))
(when no-ssl
(setq tls-program
;; Defaults:
'("gnutls-cli --insecure -p %p %h"
"gnutls-cli --insecure -p %p %h --protocols ssl3"
"openssl s_client -connect %h:%p -no_ssl2 -ign_eof")
;; '("gnutls-cli -p %p %h"
;; "openssl s_client -connect %h:%p -no_ssl2 -no_ssl3 -ign_eof")
))
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/")))))
(print (format "
==================================================================
system-type: %s
package-archive: %s
==================================================================
"
system-type
package-archives))