Browse Source

Added configurations for helm

master
Taylor Bockman 9 years ago
parent
commit
140c0c6bb4
  1. 2
      .gitignore
  2. 8
      dotfiles/emacs.d/ac-comphist.dat
  3. 3
      dotfiles/emacs.d/helm-adaptive-history
  4. 66
      dotfiles/emacs.d/init.el
  5. 4
      dotfiles/emacs.d/package.el

2
.gitignore vendored

@ -19,3 +19,5 @@ tramp
*.last
elpa/
projectile-bookmarks.eld
*.dat
*.eld

8
dotfiles/emacs.d/ac-comphist.dat

@ -1,4 +1,6 @@
((("Packages" .
[0 0 0 1 0 0 0 0])
((("kbd" .
[1 0 0])
("require" .
[2 0 0 0 0 0 0])))
[2 0 0 0 0 0 0])
("Packages" .
[0 0 0 1 0 0 0 0])))

3
dotfiles/emacs.d/helm-adaptive-history

@ -0,0 +1,3 @@
;; -*- mode: emacs-lisp -*-
;; History entries used for helm adaptive display.
(setq helm-adaptive-history (quote nil))

66
dotfiles/emacs.d/init.el

@ -1,36 +1,36 @@
(require 'package)
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Hide Startup Message
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(setq inhibit-startup-message t)
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Always follow symbolic links to version controlled files
;;
;; I prefer this option because I generally only get this message when I edit
;; a dotfile under version control, and repeatedly typing "yes" is annoying.
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(setq vc-follow-symlinks t)
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Small fix for keyboard internationalization problems
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(set-keyboard-coding-system nil)
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Disable Splash Screen
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(defvar inhibit-splash-screen)
(setq inhibit-splash-screen t)
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Enable MELPA
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
@ -40,18 +40,15 @@
(package-initialize)
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Install and load Packages
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(load-file "~/.emacs.d/package.el")
;; Load flx after its installed
(require 'flx-ido)
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Theme
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(set-frame-parameter nil 'background-mode 'dark)
(set-terminal-parameter nil 'background-mode 'dark)
@ -63,33 +60,33 @@
(powerline-center-theme)
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Line Numbering - Note: Might not look good with files with 10,000 or more lines
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(global-linum-mode t)
(defvar linum-format)
(setq linum-format "%4d \u2502 ")
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Hook framemove into windmove for seamless window to frame transitions
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
(setq framemove-hook-into-windmove t)
;;-------------------------------------------------------------------------------------
;; Ido Mode
;;-------------------------------------------------------------------------------------
;;--------------------------------------------------------------------------------------
;; Helm Configuration
;;--------------------------------------------------------------------------------------
(helm-mode t)
(helm-adaptive-mode t) ;; Sort results by most frequently used
;; Use ag instead of grep for in-file searches in helm-find-file
(defvar ido-enable-flex-matching)
(defvar ido-everywhere)
(defvar ido-use-faces)
(setq ido-enable-flex-matching t)
(setq ido-everywhere t)
(setq ido-use-faces nil)
(flx-ido-mode 1)
(ido-mode 1)
(when (executable-find "ag")
(setq helm-grep-default-command "ag -H --nogroup --nocolor %e %p %f"
helm-grep-default-recurse-command "ag -H --nogroup --nocolor %e %p %f"))
;;-------------------------------------------------------------------------------------
;; Enable Autocomplete
@ -137,6 +134,7 @@
;;-------------------------------------------------------------------------------------
;; Unbind C-t from transpose
(global-set-key (kbd "C-t") nil)
(global-set-key (kbd "C-d") nil)
@ -173,6 +171,10 @@
(global-set-key (kbd "RET") 'electric-newline-and-maybe-indent)
;; Helm
(global-set-key (kbd "C-x C-f") 'helm-find-files)
;;-------------------------------------------------------------------------------------
(custom-set-variables

4
dotfiles/emacs.d/package.el

@ -2,8 +2,8 @@
(defvar my-packages '(ag auto-complete clojure-mode coffee-mode css-mode framemove flycheck
flycheck-clojure flycheck-haskell flycheck-rust
flycheck-pos-tip flx-ido gitignore-mode haskell-mode js2-mode
less-css-mode magit neotree paredit scss-mode powerline projectile
flycheck-pos-tip gitignore-mode haskell-mode helm helm-projectile
js2-mode less-css-mode magit neotree paredit scss-mode powerline projectile
rust-mode color-theme-solarized wrap-region)
"Packages to make sure are installed")

Loading…
Cancel
Save