Skip to content

Commit

Permalink
Merge pull request #111 from nberth/emacs-doc
Browse files Browse the repository at this point in the history
Minor updates in `emacs` folder
  • Loading branch information
nberth authored Nov 3, 2023
2 parents 15572bf + 8740c2e commit b703f74
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions emacs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ following changes:
* The indentation function was modified to prevent the insertion of
spaces in the middle of the line being indented

## Superbol-mode

The other `.el` files in this directory are GNU/Emacs modes for
editing and navigating COBOL files using the SuperBOL LSP
server. These modes can be used in combination with `cobol-mode.el`.

See https://ocamlpro.github.io/superbol-studio-oss/sphinx/emacs for
more details.
2 changes: 1 addition & 1 deletion emacs/lsp-superbol.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(defgroup lsp-superbol nil
"Settings for the Superbol Language Server for COBOL (lsp-mode)."
:group 'lsp-mode
:link '(url-link "https://github.com/OCamlPro/superbol-vscode-extension")
:link '(url-link "https://github.com/OCamlPro/superbol-studio-oss")
:package-version '(lsp-mode . "8.0.1"))

(load (expand-file-name "lsp-superbol-customs.el"
Expand Down
8 changes: 4 additions & 4 deletions sphinx/emacs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ complete).
Superbol-mode
-------------

The new Superbol mode provides an IDE that makes use of the Superbol
The new Superbol-mode provides an IDE that makes use of the SuperBOL
LSP to provide advanced navigation and editing facilities for COBOL
projects. It can be used in combination with any of the two main LSP
clients that exist within the GNU/Emacs ecosystem to interact with LSP
Expand Down Expand Up @@ -105,14 +105,14 @@ extension:
.. code-block:: shell
export SUPERBOL_DIR="<directory where superbol-free can be found>";
export SUPERBOL_VSCODE_PLATFORM_DIR="$PWD";
export SUPERBOL_STUDIO_OSS_DIR="$PWD";
After this, the following command launches a GNU/Emacs instance with
an `lsp-mode`-based client configured for COBOL files:

.. code-block:: shell
emacs -L "$SUPERBOL_VSCODE_PLATFORM_DIR/emacs" \
emacs -L "$SUPERBOL_STUDIO_OSS_DIR/emacs" \
--load lsp-superbol \
--eval "(custom-set-variables '(lsp-superbol-path \"$SUPERBOL_DIR\"))" \
--funcall superbol-mode-enable-for-default-extensions
Expand All @@ -121,7 +121,7 @@ To use `eglot`, type the following instead:

.. code-block:: shell
emacs -L "$SUPERBOL_VSCODE_PLATFORM_DIR/emacs" \
emacs -L "$SUPERBOL_STUDIO_OSS_DIR/emacs" \
--load eglot-superbol \
--eval "(add-to-list 'exec-path \"$SUPERBOL_DIR\")" \
--funcall superbol-mode-enable-for-default-extensions
Expand Down

0 comments on commit b703f74

Please sign in to comment.