I am using Emacs on a Win7 machine. I have added the Melpa repo. in init.elinit.el
.
When I do "M-x list-packages"M-x list-packages
, I do get a buffer listing the packages from Melpa.
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/"))
(add-to-list 'package-archives
'("org" . "http://orgmode.org/elpa/") t)
(add-to-list 'package-archives
'("gnu" . "https://elpa.gnu.org/packages/"))
(package-initialize)
;; line numbers in emacs everywhere
(global-linum-mode t)
(set-face-attribute 'default nil :font "Consolas-12")
;; set proxy
(defun proxy-activate ()
(interactive)
(let ((proxy "unrealproxy:8080") (credentials "unrealusername:unrealpwd"))
(setq url-proxy-services
`(("no_proxy" . "^\\(localhost\\|10.*\\)")
("http" . ,proxy)
("https" . ,proxy)))
(setq url-http-proxy-basic-auth-storage
(list (list proxy
(cons "Input your LDAP UID !"
(base64-encode-string credentials)))))))
(provide 'proxy-activate)
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/"))
(add-to-list 'package-archives
'("org" . "http://orgmode.org/elpa/") t)
(add-to-list 'package-archives
'("gnu" . "https://elpa.gnu.org/packages/"))
(package-initialize)
;; line numbers in emacs everywhere
(global-linum-mode t)
(set-face-attribute 'default nil :font "Consolas-12")
;; set proxy
(defun proxy-activate ()
(interactive)
(let ((proxy "unrealproxy:8080") (credentials "unrealusername:unrealpwd"))
(setq url-proxy-services
`(("no_proxy" . "^\\(localhost\\|10.*\\)")
("http" . ,proxy)
("https" . ,proxy)))
(setq url-http-proxy-basic-auth-storage
(list (list proxy
(cons "Input your LDAP UID !"
(base64-encode-string credentials)))))))
(provide 'proxy-activate)