Skip to content

Instantly share code, notes, and snippets.

@purukaushik
Last active June 25, 2016 18:23
Show Gist options
  • Save purukaushik/71c387299afcead2e9fe2471dbdb264e to your computer and use it in GitHub Desktop.
Save purukaushik/71c387299afcead2e9fe2471dbdb264e to your computer and use it in GitHub Desktop.
My ~/.emacs.d/init.el
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(setq package-list '(autopair el-get form-feed gist gh logito pcache git f dash s dash s git-gutter+ dash git-commit with-editor dash async dash idle-highlight-mode jedi auto-complete popup jedi-core python-environment deferred epc ctable concurrent deferred jedi-core python-environment deferred epc ctable concurrent deferred js2-mode json-mode json-snatcher json-reformat json-reformat json-snatcher logito lua-mode markdown-mode pcache popup python-environment deferred s sublime-themes web-mode with-editor dash async yasnippet))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(dolist (package package-list)
(unless (package-installed-p package)
(package-install package)))
(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.
'(custom-enabled-themes (quote (spolsky)))
'(custom-safe-themes
(quote
("89aa098d7d88fde99805c36a092f9b2bdb7514b70cb345cddb62ce5bc077c24f" "4fef4bc1c287e86876cc853a2cb41020ec0cf33fe52c61174e0c332722d19f2c" "4e18ad72b13d6cd4e4bbcf829074ec8e26c32be1bf34e378117c86182d1ee343" "987b709680284a5858d5fe7e4e428463a20dfabe0a6f2a6146b3b8c7c529f08b" "0c29db826418061b40564e3351194a3d4a125d182c6ee5178c237a7364f0ff12" default)))
'(linum-format " %7i ")
'(markdown-command "/usr/local/bin/pandoc")
'(markdown-indent-on-enter t)
'(show-paren-mode 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.
)
(global-set-key (kbd "C-z") 'undo)
;; -*- 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
(add-to-list 'custom-theme-load-path "/Users/pswaminathan/.emacs.d/themes")
(load-theme 'spolsky t)
;;saves
(setq backup-directory-alist `(("." . "~/.saves")))
;;load-path elpas
(package-initialize)
;;AUTO-COMPLETE ALL TIME
(require 'auto-complete)
(global-auto-complete-mode t)
;;AUTOPAIR ALL TIME
(require 'autopair)
(autopair-global-mode)
;;LINUM ALL TIME
(require 'linum)
(global-linum-mode)
;; PYTHON JEDI COMPLETIONS
(require 'jedi)
(jedi-mode)
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t)
;;Git
;; Git
(add-to-list 'load-path "~/git/egg/")
(progn (setq egg-dir "~/git/egg")
(load-file (format "%s/egg.el" egg-dir))
(require 'egg))
(global-git-gutter+-mode)
(add-to-list 'load-path "~/.emacs.d/node-ac")
(require 'node-ac-mode)
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment