|
||
---|---|---|
.. | ||
README.md | ||
ac-dcd.el |
README.md
#Emacs Integration
##Requirements
- You must have the auto-complete package, and yasnippet package is recommended.
- Make sure dcd-client and dcd-server is in your exec-path. Otherwise, please set the variable
dcd-exectutable
anddcd-server-executable
usingM-x customize
.
Setup
- 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.
;;; ac-dcd
(add-to-list 'load-path "path_to_ac-dcd.el")
(require 'ac-dcd)
(add-to-list 'ac-modes 'd-mode)
(defun ac-d-mode-setup ()
(ac-dcd-maybe-start-server)
(add-to-list 'ac-sources 'ac-source-dcd)
(auto-complete-mode t))
(add-hook 'd-mode-hook 'ac-d-mode-setup)
(define-key d-mode-map (kbd "C-c C-h") 'ac-dcd-popup-ddoc-at-point) ;of course, you can change this keybind.
- Third, set import path using
M-x customize-variable RET ac-dcd-flags
. - When something is wrong, please check variables with
M-x customize-apropos RET ac-dcd
and restart server withM-x ac-dcd-init-server
.
TODO
- goto definition
- Multi byte character support (Need help!)
- and so on...