Skip to content

Instantly share code, notes, and snippets.

@mentiflectax
Created November 23, 2019 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mentiflectax/1e43ee06b53e263626db897571357b7e to your computer and use it in GitHub Desktop.
Save mentiflectax/1e43ee06b53e263626db897571357b7e to your computer and use it in GitHub Desktop.
Emacs config v. 1
;; Evil mode (start)
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(add-to-list 'load-path "~/.emacs.d/evil")
(require 'evil)
(evil-mode 1)
;; Evil mode (end)
(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.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
'(custom-enabled-themes (quote (wheatgrass)))
'(exec-path
(quote
("c:/ProgramData/Oracle/Java/javapath" "C:/Program Files/Common Files/Microsoft Shared/Windows Live" "C:/Windows/system32" "C:/Windows" "C:/Windows/System32/Wbem" "C:/Windows/System32/WindowsPowerShell/v1.0/" "C:/Program Files/Windows Live/Shared" "C:/Program Files/apache-maven-3.3.3/bin" "C:/Ruby22/bin" "C:/Program Files/kotlin-compiler-1.0.0/kotlinc/bin" "C:/Program Files/PuTTY/" "C:/Program Files/gradle-2.14.1/bin" "C:/Program Files/GtkSharp/2.12/bin" "C:/Program Files/Skype/Phone/" "C:/Program Files/nodejs/" "C:/Program Files/Git/cmd" "C:/Go/bin" "C:/Program Files/MiKTeX 2.9/miktex/bin/" "c:/jruby-9.0.0.0/bin" "C:/Program Files/Microsoft VS Code/bin" "C:/Users/1/AppData/Roaming/npm" "C:/Users/1/go/bin" "C:/Program Files/heroku/bin" "C:/Users/1/AppData/Local/Pandoc/" "C:/Program Files/Midnight Commander" "c:/Program Files/emacs-26.3-i686/libexec/emacs/26.3/i686-w64-mingw32" "C:/Program Files/InfoZip")))
'(package-archives
(quote
(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")))))
(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.
)
;; -*- mode: elisp -*-
;; Disable the splash screen (to enable it agin, replace the t with 0)
(setq inhibit-splash-screen t)
;; Enable transient mark mode
(transient-mark-mode 1)
;;;;Org mode configuration
;; Enable Org mode
(require 'org)
;; Make Org mode work with files ending in .org
;; (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
;; The above is the default in recent emacsen
;; MELPA config (start)
(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)
;; MELPA config (end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment