Add recommended package, update setup example
This commit is contained in:
parent
8c740965dc
commit
21961bbc6f
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
##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.
|
||||||
And [yasnippet](https://github.com/capitaomorte/yasnippet) package is recommended.
|
[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
|
||||||
* First, follow the Setup section in the root README.
|
* First, follow the Setup section in the root README.
|
||||||
* Second, add the following to your .emacs. With this setting, dcd-server starts automatically when you open file in d-mode.
|
* Second, add the following to your .emacs. With this setting, dcd-server starts automatically when you open file in d-mode. (Of course, you should edit ```path_to_ac-dcd.el``` to suit your enviroment.)
|
||||||
|
|
||||||
```
|
```
|
||||||
;;; ac-dcd
|
;;; ac-dcd
|
||||||
|
|
@ -20,9 +20,13 @@ And [yasnippet](https://github.com/capitaomorte/yasnippet) package is recommende
|
||||||
(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)))
|
||||||
|
|
||||||
(define-key d-mode-map (kbd "C-c ?") 'ac-dcd-popup-ddoc-at-point)
|
(define-key d-mode-map (kbd "C-c ?") 'ac-dcd-show-ddoc-with-buffer)
|
||||||
(define-key d-mode-map (kbd "C-c .") 'ac-dcd-goto-definition)
|
(define-key d-mode-map (kbd "C-c .") 'ac-dcd-goto-definition)
|
||||||
(define-key d-mode-map (kbd "C-c ,") 'ac-dcd-goto-def-pop-marker)
|
(define-key d-mode-map (kbd "C-c ,") 'ac-dcd-goto-def-pop-marker)
|
||||||
|
|
||||||
|
(when (featurep 'popwin)
|
||||||
|
(add-to-list 'popwin:special-display-config
|
||||||
|
`(,ac-dcd-document-buffer-name :position right :width 80)))
|
||||||
```
|
```
|
||||||
|
|
||||||
* Third, set import path using ```M-x customize-variable RET ac-dcd-flags```.
|
* Third, set import path using ```M-x customize-variable RET ac-dcd-flags```.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue