doomemacs/modules/lang/nim/README.org

48 lines
1.2 KiB
Org Mode
Raw Normal View History

2018-05-08 11:50:12 -03:00
#+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 (nimsuggest + flycheck)
2018-05-08 11:50:12 -03:00
+ Babel support (~ob-nim~)
* Table of Contents :TOC:
- [[Module Flags][Module Flags]]
- [[Prerequisites][Prerequisites]]
2018-05-08 11:50:12 -03:00
- [[Nim][Nim]]
- [[Configuration][Configuration]]
* Module Flags
This module provides no flags.
* Prerequisites
+ ~nim~ (for building & evaluation)
+ ~nimsuggest~ (for code completion, syntax checking & jump-to-definition functionality)
2018-05-08 11:50:12 -03:00
** Nim
=choosenim= is an installer and version manager for the Nim programming
language. You can install the latest stable release of Nim by running the
following in your terminal and following the onscreen instructions:
2018-05-08 11:50:12 -03:00
#+BEGIN_SRC bash
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
#+END_SRC
2018-05-08 11:50:12 -03:00
Alternatively, nim is usually available through your OS's package manager:
2018-05-08 11:50:12 -03:00
*** 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 nimble
2018-05-08 11:50:12 -03:00
#+END_SRC
* Configuration