38 lines
774 B
Org Mode
38 lines
774 B
Org Mode
|
#+TITLE: :lang Nim
|
||
|
|
||
|
#+begin_quote
|
||
|
This module is a work in progress.
|
||
|
#+end_quote
|
||
|
|
||
|
This module adds [[https://nim-lang.org][Nim]] support to Emacs.
|
||
|
|
||
|
+ Code completion (~nimsuggest+company~)
|
||
|
+ Syntax checking (~nimsugges+flycheck~)
|
||
|
+ Babel support (~ob-nim~)
|
||
|
#+begin_quote
|
||
|
...
|
||
|
#+end_quote
|
||
|
|
||
|
* Table of Contents :TOC:
|
||
|
- [[Install][Install]]
|
||
|
- [[Nim][Nim]]
|
||
|
|
||
|
* Install
|
||
|
** Nim
|
||
|
To get started with Nim, you can either use =choosenim= and install nim with:
|
||
|
|
||
|
~curl https://nim-lang.org/choosenim/init.sh -sSf | sh~
|
||
|
|
||
|
Or through your package manager:
|
||
|
|
||
|
*** MacOS
|
||
|
#+BEGIN_SRC sh :tangle (if (doom-system-os 'macos) "yes")
|
||
|
brew install nim
|
||
|
#+END_SRC
|
||
|
|
||
|
*** Arch Linux
|
||
|
#+BEGIN_SRC sh :dir /sudo:: :tangle (if (doom-system-os 'arch) "yes")
|
||
|
sudo pacman --needed --noconfirm -S nim
|
||
|
#+END_SRC
|
||
|
|