Skip to content

Instantly share code, notes, and snippets.

@psav
Created January 27, 2015 19:50
Show Gist options
  • Save psav/d0d00323870ac44a1667 to your computer and use it in GitHub Desktop.
Save psav/d0d00323870ac44a1667 to your computer and use it in GitHub Desktop.
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
;(package-refresh-contents)
(defvar my-packages '(flymake-python-pyflakes magit ein))
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(global-linum-mode 1)
(global-set-key (kbd "C-`") 'next-buffer)
(global-set-key (kbd "C-¬") 'previous-buffer)
(global-set-key (kbd "C-*") 'magit-status)
(require 'git-gutter-fringe)
(require 'magit)
;;(require 'git-gutter)
;;(global-git-gutter-mode +1)
;; setup flymake
(require 'flymake-python-pyflakes)
(setq flymake-python-pyflakes-executable "flake8")
(setq flymake-python-pyflakes-extra-arguments '("--max-line-length=100"))
(add-hook 'python-mode-hook 'flymake-python-pyflakes-load)
(global-set-key (kbd "<f5>") 'revert-buffer)
(global-set-key (kbd "C-z") 'undo)
(global-set-key (kbd "<f11>") 'make-frame)
(global-set-key (kbd "<f2>") 'magit-status)
;; auto-complete
(autoload 'ac-config-default "auto-complete-config")
(ac-config-default)
;; rcirc
(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.
'(backup-directory-alist (quote ((".*" . "~/.emacs.backups"))))
'(delete-selection-mode t)
'(ein:complete-on-dot t)
'(ein:use-auto-complete t)
'(indicate-empty-lines t)
'(python-skeleton-autoinsert t))
(add-to-list 'load-path "~/.emacs.d/rcirc/")
;; (eval-after-load 'rcirc '(require 'rcirc-notify))
(delete-selection-mode t)
;; Handles whitespace, tabs, etc
(setq-default show-trailing-whitespace t)
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'solarized-dark t)
(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.
'(ein:cell-input-area ((t (:background "#103945"))))
'(ein:cell-input-prompt ((t (:inherit header-line :foreground "#268bd2"))))
'(ein:cell-output-prompt ((t (:inherit header-line :foreground "#859900"))))
'(linum ((t (:inherit (shadow default) :background "#073642" :foreground "#586e75")))))
;; From jweiss
;; (add-hook 'python-mode-hook 'line-number-mode)
(global-set-key (kbd "<f3>") 'rcirc)
(global-set-key (kbd "<f12>") 'kill-buffer)
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment