Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (require 'package)
- (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
- (not (gnutls-available-p))))
- (proto (if no-ssl "http" "https")))
- (when no-ssl
- (warn "\
- Your version of Emacs does not support SSL connections,
- which is unsafe because it allows man-in-the-middle attacks.
- There are two things you can do about this warning:
- 1. Install an Emacs version that does support SSL and be safe.
- 2. Remove this warning from your init file so you won't see it again."))
- ;; 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)
- (when (< emacs-major-version 24)
- ;; For important compatibility libraries like cl-lib
- (add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/")))))
- (package-initialize)
- ;gpg signature for elpa seem to be no longer valid
- (setq package-check-signature nil)
- ; fetch the list of packages available
- (unless package-archive-contents
- (package-refresh-contents))
- ; list the packages you want
- (setq package-list '(use-package org php-mode erlang treemacs))
- ; install the missing packages
- (dolist (package package-list)
- (unless (package-installed-p package)
- (package-install package)))
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; automatic backups will be saved to temp
- (setq backup-directory-alist
- `((".*" . ,temporary-file-directory)))
- (setq auto-save-file-name-transforms
- `((".*" ,temporary-file-directory t)))
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; treemacs settings
- (use-package treemacs
- :ensure t
- :config
- (progn
- (setq
- treemacs-is-never-other-window t
- treemacs-git-integration t
- treemacs-show-hidden-files nil
- )
- (treemacs-follow-mode t)
- (set-face-attribute 'treemacs-root-face nil
- :height 1.0
- :underline nil))
- :bind
- (([f8] . treemacs)
- ("C-c t" . treemacs-select-window)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement