Advertisement
Guest User

Untitled

a guest
May 15th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.09 KB | None | 0 0
  1. (require 'package)
  2. (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
  3.                     (not (gnutls-available-p))))
  4.        (proto (if no-ssl "http" "https")))
  5.   (when no-ssl
  6.     (warn "\
  7. Your version of Emacs does not support SSL connections,
  8. which is unsafe because it allows man-in-the-middle attacks.
  9. There are two things you can do about this warning:
  10. 1. Install an Emacs version that does support SSL and be safe.
  11. 2. Remove this warning from your init file so you won't see it again."))
  12.   ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
  13.   (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
  14.   ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
  15.   (when (< emacs-major-version 24)
  16.     ;; For important compatibility libraries like cl-lib
  17.     (add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/")))))
  18. (package-initialize)
  19.  
  20. ;gpg signature for elpa seem to be no longer valid
  21. (setq package-check-signature nil)
  22.  
  23. ; fetch the list of packages available
  24. (unless package-archive-contents
  25.   (package-refresh-contents))
  26.  
  27. ; list the packages you want
  28. (setq package-list '(use-package org php-mode erlang treemacs))
  29.  
  30. ; install the missing packages
  31. (dolist (package package-list)
  32.   (unless (package-installed-p package)
  33.     (package-install package)))
  34.  
  35. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  36.  
  37. ; automatic backups will be saved to temp
  38.     (setq backup-directory-alist
  39.           `((".*" . ,temporary-file-directory)))
  40.     (setq auto-save-file-name-transforms
  41.           `((".*" ,temporary-file-directory t)))
  42.  
  43. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  44.  
  45. ; treemacs settings
  46. (use-package treemacs
  47.   :ensure t
  48.   :config
  49.   (progn
  50.     (setq
  51.      treemacs-is-never-other-window t
  52.      treemacs-git-integration t
  53.      treemacs-show-hidden-files nil
  54.      )
  55.     (treemacs-follow-mode t)
  56.     (set-face-attribute 'treemacs-root-face nil
  57.                         :height 1.0
  58.                         :underline nil))
  59.   :bind
  60.   (([f8] . treemacs)
  61.    ("C-c t" . treemacs-select-window)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement