Skip to content

Commit

Permalink
much change
Browse files Browse the repository at this point in the history
  • Loading branch information
Brady Love committed Aug 6, 2014
1 parent f656024 commit 9b1782b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,3 +6,4 @@ projectile-bookmarks.eld
\#*.*\#
*.el~
session.*
ac-comphist.dat
4 changes: 3 additions & 1 deletion init.d/10_packages.el
Expand Up @@ -42,10 +42,12 @@
yasnippet

;; Auto-completion
company
;; company
auto-complete

;; Themes
moe-theme
;; tangotango-theme

;; Language specific packages
enh-ruby-mode
Expand Down
35 changes: 29 additions & 6 deletions init.d/ZZ_complete_setup.el
Expand Up @@ -18,7 +18,6 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(diminish 'anzu-mode)
(diminish 'guru-mode)
(diminish 'company-mode)
(diminish 'projectile-mode)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down Expand Up @@ -46,14 +45,38 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; company-mode (http://company-mode.github.io/)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq company-idle-delay 0.5)
(setq company-tooltip-limit 10)
(setq company-minimum-prefix-length 2)
;; (setq company-idle-delay 0.5)
;; (setq company-tooltip-limit 10)
;; (setq company-minimum-prefix-length 2)
;; invert the navigation direction if the the completion popup-isearch-match
;; is displayed on top (happens near the bottom of windows)
(setq company-tooltip-flip-when-above t)
;; (setq company-tooltip-flip-when-above t)

(global-company-mode 1)
;; (global-company-mode 1)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; auto-complete
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'auto-complete-config)
(ac-config-default)

(setq ac-auto-start t)
(setq ac-auto-show-menu 0.0)
(ac-set-trigger-key "TAB")
(define-key ac-menu-map "\C-n" 'ac-next)
(define-key ac-menu-map "\C-p" 'ac-previous)


(add-to-list 'ac-modes 'enh-ruby-mode)
(add-to-list 'ac-modes 'js2-mode)
(add-to-list 'ac-modes 'css-mode)

(global-auto-complete-mode +1)

;; (require 'go-autocomplete)
;; (add-hook 'go-mode-hook
;; (lambda ()
;; (add-to-list 'ac-source ac-go-candidates)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; projectile (https://github.com/bbatsov/projectile)
Expand Down
4 changes: 4 additions & 0 deletions init.d/kill_other_buffers.el
@@ -0,0 +1,4 @@
(defun kill-other-buffers ()
"Kill all other buffers."
(interactive)
(mapc 'kill-buffer (delq (current-buffer) (buffer-list))))

0 comments on commit 9b1782b

Please sign in to comment.