Skip to content

Commit

Permalink
added: auto-complete mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ncaq committed Mar 25, 2015
1 parent e58020d commit ff37800
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions profile/20_auto-complete.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
;; -*- lexical-binding: t -*-
;;http://cx4a.org/software/auto-complete/manual.ja.html

(require 'auto-complete-config)

(ac-config-default)

(custom-set-variables
'(global-auto-complete-mode t)
'(ac-auto-show-menu 0.4)
'(ac-ignore-case t)
'(ac-menu-height 22)
'(ac-quick-help-delay 0.4)
'(ac-use-quick-help t)
'(ac-modes (append
'(conf-mode
d-mode
fundamental-mode
git-commit-mode
haskell-mode
inferior-haskell-mode
markdown-mode
scss-mode
shell-script-mode
text-mode
)
ac-modes))
)

(setq-default ac-sources '(ac-source-filename
ac-source-words-in-all-buffer
))

(ac-set-trigger-key "<tab>")
(define-key ac-completing-map (kbd "M-n") 'ac-next)
(define-key ac-completing-map (kbd "M-t") 'ac-previous)
(define-key ac-mode-map (kbd "C-'") 'auto-complete)
Binary file added profile/20_auto-complete.elc
Binary file not shown.
4 changes: 2 additions & 2 deletions profile/40_global-set-key.el
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
;; -*- lexical-binding: t -*-

(global-set-key (kbd "<tab>") 'company-trigger-key-command) ;何かしらを割り当てることで,C-iと別扱いになる
(global-set-key (kbd "<tab>") 'indent-for-tab-command) ;何かしらを割り当てることで,C-iと別扱いになる

(global-set-key (kbd "C-'") 'company-complete-common)
(global-set-key (kbd "C-'") 'auto-complete)
(global-set-key (kbd "C-+") 'text-scale-increase)
(global-set-key (kbd "C--") 'eww-goto-alc)
(global-set-key (kbd "C-.") 'helm-semantic-or-imenu)
Expand Down
Binary file modified profile/40_global-set-key.elc
Binary file not shown.

0 comments on commit ff37800

Please sign in to comment.