Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. cat >> ~/.emacs
  2.  
  3. ^D
  4.  
  5. C-x C-f
  6.  
  7. C-x C-f ~/foo/*.c RET
  8.  
  9. (require 'package)
  10. (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
  11. (not (gnutls-available-p))))
  12. (proto (if no-ssl "http" "https")))
  13. (when no-ssl
  14. (warn "
  15. Your version of Emacs does not support SSL connections,
  16. which is unsafe because it allows man-in-the-middle attacks.
  17. There are two things you can do about this warning:
  18. 1. Install an Emacs version that does support SSL and be safe.
  19. 2. Remove this warning from your init file so you won't see it again."))
  20. ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
  21. (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
  22. ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
  23. (when (< emacs-major-version 24)
  24. ;; For important compatibility libraries like cl-lib
  25. (add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/")))))
  26. (package-initialize)
  27.  
  28. package-list-packages
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement