Created
May 26, 2017 18:31
-
-
Save dracony/124af0578ed492d822a44f859d523d2a to your computer and use it in GitHub Desktop.
This file contains 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
(setq package-enable-at-startup nil) | |
(require 'package) ;; You might already have this line | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.org/packages/")) | |
(package-initialize) ;; You might already have this line | |
(projectile-mode) | |
(ivy-mode 1) | |
(setq ivy-use-virtual-buffers t) | |
(setq enable-recursive-minibuffers t) | |
(global-set-key "\C-s" 'swiper) | |
(global-set-key (kbd "C-c C-r") 'ivy-resume) | |
(global-set-key (kbd "<f6>") 'ivy-resume) | |
(global-set-key (kbd "M-x") 'counsel-M-x) | |
(global-set-key (kbd "C-x C-f") 'counsel-find-file) | |
(global-set-key (kbd "<f1> f") 'counsel-describe-function) | |
(global-set-key (kbd "<f1> v") 'counsel-describe-variable) | |
(global-set-key (kbd "<f1> l") 'counsel-find-library) | |
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol) | |
(global-set-key (kbd "<f2> u") 'counsel-unicode-char) | |
(global-set-key (kbd "C-c g") 'counsel-git) | |
(global-set-key (kbd "C-c j") 'counsel-git-grep) | |
(global-set-key (kbd "C-c k") 'counsel-ag) | |
(global-set-key (kbd "C-x l") 'counsel-locate) | |
(global-set-key (kbd "C-S-o") 'counsel-rhythmbox) | |
(define-key read-expression-map (kbd "C-r") 'counsel-expression-history) | |
(counsel-projectile-on) | |
(require 'powerline) | |
(require 'moe-theme) | |
;;(moe-dark) | |
(powerline-moe-theme) | |
(load-theme 'ample t t) | |
(enable-theme 'ample) | |
(setq projectile-switch-project-action 'neotree-projectile-action) | |
(global-linum-mode 1) | |
(require 'mmm-auto) | |
(setq mmm-global-mode 'maybe) | |
(add-to-list 'auto-mode-alist '("\\.m.?\\'" . html-mode)) | |
(mmm-add-mode-ext-class 'html-mode "\\.m.?\\'" 'mason) | |
(setq-default indent-tabs-mode nil) | |
(setq tab-width 4) ; or any other preferred value | |
(defvaralias 'c-basic-offset 'tab-width) | |
(defvaralias 'cperl-indent-level 'tab-width) | |
(require 'hlinum) | |
(hlinum-activate) | |
(global-set-key (kbd "C-x g") 'magit-status) | |
(global-set-key (kbd "<f2>") 'projectile-grep) | |
(global-set-key (kbd "<f1>") 'projectile-find-file) | |
(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 | |
(typescript-mode minimap google-maps sx twittering-mode tabbar powerline poker persistent-soft neotree moe-theme mmm-mode material-theme magit kpm-list hlinum ergoemacs-mode counsel-projectile buffer-flip arjen-grey-theme ample-theme alect-themes)))) | |
(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