Created
          March 19, 2020 14:48 
        
      - 
      
 - 
        
Save edmellum/8cbd552a4e10b2d7e46425eeee1ef04d to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ;;; -*- lexical-binding: t -*- | |
| ;; Package system and sources. | |
| (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) | |
| (when (< emacs-major-version 24) | |
| ;; For important compatibility libraries like cl-lib | |
| (add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/"))))) | |
| (package-initialize) | |
| ;; We will use 'use-package' to install and configure packages. | |
| (unless (package-installed-p 'use-package) | |
| (package-refresh-contents) | |
| (package-install 'use-package)) | |
| (eval-when-compile (require 'use-package)) | |
| (setq use-package-always-ensure t) | |
| (use-package exec-path-from-shell | |
| :ensure t) | |
| (when (memq window-system '(mac ns)) | |
| (exec-path-from-shell-initialize)) | |
| (setq auto-save-default nil) | |
| (setq make-backup-files nil) | |
| (setq large-file-warning-threshold 100000000) | |
| (global-auto-revert-mode t) | |
| (setq | |
| inhibit-startup-message t | |
| inhibit-startup-screen t | |
| echo-keystrokes 0.1 | |
| initial-scratch-message nil | |
| confirm-kill-emacs 'y-or-n-p | |
| help-window-select t | |
| ) | |
| (fset 'yes-or-no-p 'y-or-n-p) | |
| (setq custom-file "~/.emacs.d/custom.el") | |
| (load custom-file 'noerror) | |
| (use-package undo-tree | |
| :diminish undo-tree-mode | |
| :init | |
| (progn | |
| (global-undo-tree-mode) | |
| (setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/tmp/undo")) | |
| undo-tree-auto-save-history t | |
| undo-tree-visualizer-timestamps t | |
| undo-tree-visualizer-diff t))) | |
| (when (member "menlo" (font-family-list)) | |
| (set-face-attribute 'default nil :font "Menlo 15")) | |
| (setq-default line-spacing 2) | |
| (load-theme 'tsdh-light) | |
| (tool-bar-mode -1) | |
| (scroll-bar-mode -1) | |
| (global-visual-line-mode 1) | |
| (global-hl-line-mode 1) | |
| (set-face-attribute 'mode-line nil :background "SlateGray1") | |
| (set-face-attribute 'mode-line-inactive nil :background "grey93") | |
| (setq tab-width 2) | |
| (setq js-indent-level 2) | |
| (setq css-indent-offset 2) | |
| (setq c-basic-offset 2) | |
| (setq-default indent-tabs-mode nil) | |
| (setq-default c-basic-offset 2) | |
| (setq-default tab-width 2) | |
| (setq-default c-basic-indent 2) | |
| (use-package multiple-cursors | |
| :config | |
| (setq mc/always-run-for-all 1) | |
| (global-set-key (kbd "s-d") 'mc/mark-next-like-this) | |
| (global-set-key (kbd "s-D") 'mc/mark-all-dwim) | |
| (global-set-key (kbd "M-s-d") 'mc/edit-beginnings-of-lines) | |
| (define-key mc/keymap (kbd "<return>") nil)) | |
| (ido-mode t) | |
| ;; Settings for ido. The most important one is fuzzy matching, like Sublime Text. | |
| (setq | |
| ido-case-fold t | |
| ido-enable-prefix nil | |
| ido-enable-flex-matching t | |
| ido-create-new-buffer 'always | |
| ido-use-filename-at-point nil | |
| ido-max-prospects 10 | |
| yas/prompt-functions '(yas/ido-prompt) | |
| ) | |
| (use-package magit | |
| :config | |
| (global-set-key (kbd "s-g") 'magit-status)) | |
| (use-package markdown-mode) | |
| (use-package restclient) | |
| (use-package elm-mode) | |
| (custom-set-variables | |
| ;; custom-set-variables was added by Custom. | |
| ;; If you edit it by hand, you could mess it up, so be careful. | |
| ;; Your init file should contain only one such instance. | |
| ;; If there is more than one, they won't work right. | |
| '(package-selected-packages (quote (exec-path-from-shell use-package)))) | |
| (custom-set-faces | |
| ;; custom-set-faces was added by Custom. | |
| ;; If you edit it by hand, you could mess it up, so be careful. | |
| ;; Your init file should contain only one such instance. | |
| ;; If there is more than one, they won't work right. | |
| ) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment