.emacs
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
(require 'package) | |
;; melpa !! | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(add-to-list 'package-archives | |
'("marmalade" . | |
"http://marmalade-repo.org/packages/")) | |
;; C indent style is better like this | |
(setq c-default-style "linux" | |
c-basic-offset 4) | |
;; system | |
(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 (monokai))) | |
'(custom-safe-themes (quote ("e6d8f0a69db2358c8c3a13e1d3cae4f2c79468d8589ac9b7f85bf948eb7c393c" "60f04e478dedc16397353fb9f33f0d895ea3dab4f581307fbf0aa2f07e658a40" "86f4407f65d848ccdbbbf7384de75ba320d26ccecd719d50239f2c36bec18628" default))) | |
'(initial-frame-alist (quote ((fullscreen . maximized)))) | |
'(menu-bar-mode nil) | |
'(scss-compile-at-save nil) ;; stop scss from compiling at save | |
'(tool-bar-mode nil) | |
'(uniquify-buffer-name-style (quote post-forward-angle-brackets) nil (uniquify))) | |
(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. | |
) | |
;; nyan-mode and ido-mode at start up | |
(add-hook 'emacs-startup-hook | |
(lambda() | |
(ido-mode t) | |
(nyan-mode t) | |
(global-auto-complete-mode t) | |
(flx-ido-mode t) | |
(projectile-global-mode t) | |
)) | |
;; see in which ( ) I am | |
(show-paren-mode 1) | |
;; nice names for same name buffers | |
(require 'uniquify) | |
;; helm where I like it | |
(global-set-key (kbd "M-x") 'helm-M-x) | |
(global-set-key (kbd "M-y") 'helm-show-kill-ring) | |
;; projectile fuzzy searching | |
(global-set-key (kbd "C-c C-f") 'projectile-find-file) | |
;;flymake-ruby | |
(add-hook 'ruby-mode-hook 'flymake-ruby-load) | |
;; indent | |
(setq ruby-deep-indent-paren nil) | |
;; disable ido faces to see flx highlights. | |
(setq ido-enable-flex-matching t) | |
(setq ido-use-faces nil) | |
;; Display ido results vertically, rather than horizontally | |
(setq ido-decorations (quote ("\n-> " "" "\n " "\n ..." "[" "]" " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]"))) | |
(defun ido-disable-line-truncation () (set (make-local-variable 'truncate-lines) nil)) | |
(add-hook 'ido-minibuffer-setup-hook 'ido-disable-line-truncation) | |
(defun ido-define-keys () ;; C-n/p is more intuitive in vertical layout | |
(define-key ido-completion-map (kbd "C-n") 'ido-next-match) | |
(define-key ido-completion-map (kbd "C-p") 'ido-prev-match)) | |
(add-hook 'ido-setup-hook 'ido-define-keys) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment