Skip to content

Instantly share code, notes, and snippets.

@JoshuaGranger
Last active March 1, 2017 19:39
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 JoshuaGranger/27f897fd711bd15c4da896fb59871c2a to your computer and use it in GitHub Desktop.
Save JoshuaGranger/27f897fd711bd15c4da896fb59871c2a to your computer and use it in GitHub Desktop.
;; init.el --- Emacs configuration
;; --------------------------------------
;; INSTALL PACKAGES
;; --------------------------------------
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar myPackages
'(elpy
flycheck
python-mode)) ;; is python-mode needed here?
(mapc #'(lambda (package)
(unless (package-installed-p package)
(package-install package)))
myPackages)
;; --------------------------------------
;; BASIC CUSTOMIZATION
;; --------------------------------------
;; (setq inhibit-startup-message t) ;; hide the startup message
(load-theme 'tango-dark t) ;; load material theme
(global-linum-mode t) ;; enable line numbers globally
;; --------------------------------------
;; PYTHON CONFIGURATION
;; --------------------------------------
(elpy-enable)
;; use flycheck not flymake with elpy
(when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode))
;; init.el ends here
;; --------------------------------------
;; Emacs automatically generated the following code (I'm not sure what it does)
;; --------------------------------------
(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 bold shadow italic underline bold bold-italic bold])
'(ansi-color-names-vector
(vector "#ffffff" "#f36c60" "#8bc34a" "#fff59d" "#4dd0e1" "#b39ddb" "#81d4fa" "#263238"))
'(custom-safe-themes
(quote
("5dc0ae2d193460de979a463b907b4b2c6d2c9c4657b2e9e66b8898d2592e3de5" "98cc377af705c0f2133bb6d340bf0becd08944a588804ee655809da5d8140de6" default)))
'(fci-rule-color "#37474f")
'(hl-sexp-background-color "#1c1f26")
'(package-selected-packages
(quote
(python-mode py-autopep8 material-theme jedi flycheck elpy ein better-defaults)))
'(vc-annotate-background nil)
'(vc-annotate-color-map
(quote
((20 . "#f36c60")
(40 . "#ff9800")
(60 . "#fff59d")
(80 . "#8bc34a")
(100 . "#81d4fa")
(120 . "#4dd0e1")
(140 . "#b39ddb")
(160 . "#f36c60")
(180 . "#ff9800")
(200 . "#fff59d")
(220 . "#8bc34a")
(240 . "#81d4fa")
(260 . "#4dd0e1")
(280 . "#b39ddb")
(300 . "#f36c60")
(320 . "#ff9800")
(340 . "#fff59d")
(360 . "#8bc34a"))))
'(vc-annotate-very-old-color nil))
(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