documentation formatting: Thu Apr 18 19:16:31 UTC 2019
This commit is contained in:
parent
e80a4fa0ab
commit
912f69ef9d
|
@ -1,6 +1,6 @@
|
|||
#+TITLE: prolog layer
|
||||
|
||||
* Table of Contents :TOC_4_gh:noexport:
|
||||
* Table of Contents :TOC_4_gh:noexport:
|
||||
- [[#description][Description]]
|
||||
- [[#features][Features:]]
|
||||
- [[#install][Install]]
|
||||
|
@ -16,10 +16,10 @@
|
|||
This layer adds support for Prolog using the bundled Prolog mode for Emacs. In addition it also adds ediprolog support for better interaction with SWI-Prolog.
|
||||
|
||||
** Features:
|
||||
- Designed for SWI-Prolog as a default, but can be used with other Prologs that Prolog mode supports.
|
||||
- Interactive consulting and compiling.
|
||||
- Auto-formatting.
|
||||
- Apropos and help lookup.
|
||||
- Designed for SWI-Prolog as a default, but can be used with other Prologs that Prolog mode supports.
|
||||
- Interactive consulting and compiling.
|
||||
- Auto-formatting.
|
||||
- Apropos and help lookup.
|
||||
|
||||
* Install
|
||||
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
||||
|
@ -27,10 +27,9 @@ add =prolog= to the existing =dotspacemacs-configuration-layers= list in this
|
|||
file.
|
||||
|
||||
* Key bindings
|
||||
|
||||
** Consulting
|
||||
|
||||
| Key Binding | Description |
|
||||
| Key binding | Description |
|
||||
|-------------+-------------------|
|
||||
| ~SPC m s b~ | Consult Buffer |
|
||||
| ~SPC m s f~ | Consult File |
|
||||
|
@ -39,22 +38,22 @@ file.
|
|||
|
||||
** Compiling
|
||||
|
||||
| Key Binding | Description |
|
||||
| Key binding | Description |
|
||||
|-------------+-------------------|
|
||||
| ~SPC m c b~ | Compile Buffer |
|
||||
| ~SPC m c c~ | Compile File |
|
||||
| ~SPC m c p~ | Compile Predicate |
|
||||
| ~SPC m c r~ | Compile Region |
|
||||
|
||||
** Formatting
|
||||
** Formatting
|
||||
|
||||
| Key Binding | Description |
|
||||
| Key binding | Description |
|
||||
|-------------+---------------|
|
||||
| ~SPC m =~ | Indent Buffer |
|
||||
|
||||
** Inserting
|
||||
|
||||
| Key Binding | Description |
|
||||
| Key binding | Description |
|
||||
|-------------+----------------------------------------------------|
|
||||
| ~SPC m i m~ | Insert a Modeline for Module Specification |
|
||||
| ~SPC m i n~ | Insert Newline and the Name for the Current Clause |
|
||||
|
@ -63,13 +62,13 @@ file.
|
|||
|
||||
** Help
|
||||
|
||||
| Key Binding | Description |
|
||||
| Key binding | Description |
|
||||
|-------------+---------------------------------------|
|
||||
| ~SPC m h a~ | Prolog Apropos for a Given String |
|
||||
| ~SPC m h p~ | Online Help for the Atom under Cursor |
|
||||
|
||||
** Evaluating
|
||||
** Evaluating
|
||||
|
||||
| Key Binding | Description |
|
||||
| Key binding | Description |
|
||||
|-------------+-------------------------------------------|
|
||||
| ~SPC m e e~ | Context Sensitive SWI-Prolog Interaction. |
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
- [[#automatic-save-of-buffer-when-testing][Automatic save of buffer when testing]]
|
||||
- [[#autoflake][autoflake]]
|
||||
- [[#pylookup][pylookup]]
|
||||
- [[#dap-mode-debugger only-for-lsp-backend][dap-mode debugger (only for lsp backend)]]
|
||||
- [[#dap-mode-debugger-only-for-lsp-backend][dap-mode debugger (only for lsp backend)]]
|
||||
- [[#configuration][Configuration]]
|
||||
- [[#fill-column][Fill column]]
|
||||
- [[#sort-imports][Sort imports]]
|
||||
|
|
|
@ -18,17 +18,20 @@ This layer adds support for [[https://github.com/Galooshi/import-js][import-js]]
|
|||
To use this configuration layer, add it to your =~/.spacemacs=.
|
||||
|
||||
To install =import-js= globally:
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
$ npm install -g import-js
|
||||
#+END_SRC
|
||||
|
||||
If that doesn't work you can also try installing =import-js= with =--unsafe-perm= tag
|
||||
If that doesn’t work you can also try installing =import-js= with =--unsafe-perm= tag
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
$ sudo npm install --unsafe-perm -g import-js
|
||||
#+END_SRC
|
||||
|
||||
To enable it, set the layer variable =javascript-import-tool=, for example for
|
||||
the =javascript= layer
|
||||
|
||||
#+BEGIN_SRC elisp
|
||||
(javascript :variables javascript-import-tool 'import-js)
|
||||
#+END_SRC
|
||||
|
|
|
@ -140,6 +140,7 @@
|
|||
- [[file:+lang/perl6/README.org][perl6]]
|
||||
- [[file:+lang/php/README.org][php]]
|
||||
- [[file:+lang/plantuml/README.org][plantuml]]
|
||||
- [[file:+lang/prolog/README.org][prolog]]
|
||||
- [[file:+lang/protobuf/README.org][protobuf]]
|
||||
- [[file:+lang/purescript/README.org][purescript]]
|
||||
- [[file:+lang/python/README.org][python]]
|
||||
|
@ -230,6 +231,7 @@
|
|||
- [[file:+tools/finance/README.org][finance]]
|
||||
- [[file:+tools/geolocation/README.org][geolocation]]
|
||||
- [[file:+tools/imenu-list/README.org][imenu-list]]
|
||||
- [[file:+tools/import-js/README.org][import-js]]
|
||||
- [[file:+tools/lsp/README.org][lsp]]
|
||||
- [[file:+tools/nginx/README.org][nginx]]
|
||||
- [[file:+tools/node/README.org][node]]
|
||||
|
|
Loading…
Reference in New Issue