Update README.md
Add yas-minor-mode-on and call "auto-complete-mode" in "add-hook" , instead of "add-to-list 'd-modes"
This commit is contained in:
parent
66afa352a5
commit
2f562df1fd
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
##Requirements
|
##Requirements
|
||||||
* You must have the [auto-complete](https://github.com/auto-complete/auto-complete) package.
|
* You must have the [auto-complete](https://github.com/auto-complete/auto-complete) package.
|
||||||
[yasnippet](https://github.com/capitaomorte/yasnippet) and [popwin](https://github.com/m2ym/popwin-el) is recommended.
|
And, [yasnippet](https://github.com/capitaomorte/yasnippet) and [popwin](https://github.com/m2ym/popwin-el) is recommended.
|
||||||
* Make sure dcd-client and dcd-server is in your exec-path. Otherwise, please set the variable ```dcd-exectutable``` and ```dcd-server-executable``` using ```M-x customize```.
|
* Make sure dcd-client and dcd-server is in your exec-path. Otherwise, please set the variable ```dcd-exectutable``` and ```dcd-server-executable``` using ```M-x customize```.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
@ -13,10 +13,11 @@
|
||||||
;;; ac-dcd
|
;;; ac-dcd
|
||||||
(add-to-list 'load-path "path_to_ac-dcd.el")
|
(add-to-list 'load-path "path_to_ac-dcd.el")
|
||||||
(require 'ac-dcd)
|
(require 'ac-dcd)
|
||||||
(add-to-list 'ac-modes 'd-mode)
|
|
||||||
|
|
||||||
(add-hook 'd-mode-hook
|
(add-hook 'd-mode-hook
|
||||||
'(lambda () "set up ac-dcd"
|
'(lambda () "set up ac-dcd"
|
||||||
|
(auto-complete-mode t)
|
||||||
|
(yas-minor-mode-on)
|
||||||
(ac-dcd-maybe-start-server)
|
(ac-dcd-maybe-start-server)
|
||||||
(add-to-list 'ac-sources 'ac-source-dcd)))
|
(add-to-list 'ac-sources 'ac-source-dcd)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue