Skip to content

Commit

Permalink
Enable nimsuggest and its completions in nim-mode.
Browse files Browse the repository at this point in the history
FossilOrigin-Name: c785b15f46bc39892c32f6d5a6c12fe5120622f3
  • Loading branch information
jaccarmac committed Oct 6, 2016
1 parent 14e02cb commit 0310b87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions dot-emacs-dot-d.org
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,16 @@ Now, for some code.
* Edit and complete Nim.

Nim is a systems programming languages that compiles to C, C++, ObjC, and
JavaScript. It's the latest toy language I am trying to learn.
JavaScript. It's the latest toy language I am trying to learn. Nim's Emacs
mode adds some completion information to ~completion-at-point-function~. Here
the completion daemon is configured and ~ac-capf~ is setup in the relevant
modes.

#+BEGIN_SRC emacs-lisp :noweb-ref nim-mode
(quse-package nim-mode)
(quse-package nim-mode
:init
(add-hook 'nim-mode-hook 'nimsuggest-mode)
(add-hook 'nim-mode-hook 'ac-capf-setup))
#+END_SRC

* View Markdown.
Expand Down
5 changes: 4 additions & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@

(quse-package yasnippet)

(quse-package nim-mode)
(quse-package nim-mode
:init
(add-hook 'nim-mode-hook 'nimsuggest-mode)
(add-hook 'nim-mode-hook 'ac-capf-setup))

(quse-package markdown-mode)

Expand Down

0 comments on commit 0310b87

Please sign in to comment.