Browse Source

Added configurations for helm

master
Taylor Bockman 9 years ago
parent
commit
140c0c6bb4
  1. 4
      .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

4
.gitignore vendored

@ -18,4 +18,6 @@ tramp
.cask/ .cask/
*.last *.last
elpa/ elpa/
projectile-bookmarks.eld projectile-bookmarks.eld
*.dat
*.eld

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

@ -1,4 +1,6 @@
((("Packages" . ((("kbd" .
[0 0 0 1 0 0 0 0]) [1 0 0])
("require" . ("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) (require 'package)
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Hide Startup Message ;; Hide Startup Message
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(setq inhibit-startup-message t) (setq inhibit-startup-message t)
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Always follow symbolic links to version controlled files ;; Always follow symbolic links to version controlled files
;; ;;
;; I prefer this option because I generally only get this message when I edit ;; 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. ;; a dotfile under version control, and repeatedly typing "yes" is annoying.
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(setq vc-follow-symlinks t) (setq vc-follow-symlinks t)
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Small fix for keyboard internationalization problems ;; Small fix for keyboard internationalization problems
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(set-keyboard-coding-system nil) (set-keyboard-coding-system nil)
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Disable Splash Screen ;; Disable Splash Screen
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(defvar inhibit-splash-screen) (defvar inhibit-splash-screen)
(setq inhibit-splash-screen t) (setq inhibit-splash-screen t)
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Enable MELPA ;; Enable MELPA
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(add-to-list 'package-archives (add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t) '("melpa" . "https://melpa.org/packages/") t)
@ -40,18 +40,15 @@
(package-initialize) (package-initialize)
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Install and load Packages ;; Install and load Packages
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(load-file "~/.emacs.d/package.el") (load-file "~/.emacs.d/package.el")
;; Load flx after its installed ;;--------------------------------------------------------------------------------------
(require 'flx-ido)
;;-------------------------------------------------------------------------------------
;; Theme ;; Theme
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(set-frame-parameter nil 'background-mode 'dark) (set-frame-parameter nil 'background-mode 'dark)
(set-terminal-parameter nil 'background-mode 'dark) (set-terminal-parameter nil 'background-mode 'dark)
@ -63,33 +60,33 @@
(powerline-center-theme) (powerline-center-theme)
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Line Numbering - Note: Might not look good with files with 10,000 or more lines ;; Line Numbering - Note: Might not look good with files with 10,000 or more lines
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(global-linum-mode t) (global-linum-mode t)
(defvar linum-format) (defvar linum-format)
(setq linum-format "%4d \u2502 ") (setq linum-format "%4d \u2502 ")
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Hook framemove into windmove for seamless window to frame transitions ;; Hook framemove into windmove for seamless window to frame transitions
;;------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
(setq framemove-hook-into-windmove t) (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) (when (executable-find "ag")
(defvar ido-everywhere) (setq helm-grep-default-command "ag -H --nogroup --nocolor %e %p %f"
(defvar ido-use-faces) helm-grep-default-recurse-command "ag -H --nogroup --nocolor %e %p %f"))
(setq ido-enable-flex-matching t)
(setq ido-everywhere t)
(setq ido-use-faces nil)
(flx-ido-mode 1)
(ido-mode 1)
;;------------------------------------------------------------------------------------- ;;-------------------------------------------------------------------------------------
;; Enable Autocomplete ;; Enable Autocomplete
@ -137,6 +134,7 @@
;;------------------------------------------------------------------------------------- ;;-------------------------------------------------------------------------------------
;; Unbind C-t from transpose ;; Unbind C-t from transpose
(global-set-key (kbd "C-t") nil) (global-set-key (kbd "C-t") nil)
(global-set-key (kbd "C-d") nil) (global-set-key (kbd "C-d") nil)
@ -173,6 +171,10 @@
(global-set-key (kbd "RET") 'electric-newline-and-maybe-indent) (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 (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 (defvar my-packages '(ag auto-complete clojure-mode coffee-mode css-mode framemove flycheck
flycheck-clojure flycheck-haskell flycheck-rust flycheck-clojure flycheck-haskell flycheck-rust
flycheck-pos-tip flx-ido gitignore-mode haskell-mode js2-mode flycheck-pos-tip gitignore-mode haskell-mode helm helm-projectile
less-css-mode magit neotree paredit scss-mode powerline projectile js2-mode less-css-mode magit neotree paredit scss-mode powerline projectile
rust-mode color-theme-solarized wrap-region) rust-mode color-theme-solarized wrap-region)
"Packages to make sure are installed") "Packages to make sure are installed")

Loading…
Cancel
Save