diff options
author | Yuchen Pei <hi@ypei.me> | 2022-09-05 15:44:41 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-09-05 15:44:41 +1000 |
commit | 21075f62501ecf18d7e56cbe2212ba02bea141db (patch) | |
tree | d330aba68c8d2f0bc20fe59edd7ebcfcf9464ec0 | |
parent | bf28ac7e4e8a80daae955fba5b02bbd2b0ea5d67 (diff) |
Adding docs about the emacs binding.
-rw-r--r-- | README.org | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -3,6 +3,8 @@ hcel is a fork of [[https://github.com/alexwl/haskell-code-explorer][Haskell Code Explorer]], it works with GHC-9.2.2 with Cabal-3.6.2.0, and possibly other adjacent versions. +It also comes with an emacs binding. + * Install #+begin_src sh @@ -52,6 +54,28 @@ testsuites and benchmarks, in the .cabal file, therefore you'll need to build them all before indexing, otherwise the indexer will complain about missing files. +* Emacs binding +You may find an emacs client under the ~lisp~ directory. It covers + almost all features in the js client, and more: + +- Jump to definition (using xref) +- Find references (based on compilation mode) +- Search identifiers in a package or globally (based on compilation mode) +- Highlight the identifier at point +- Browse packages, modules and identifiers in an outline mode +- Eldoc integration, showing type and documentation of the identifier + at point, or the selected expression. +- Syntax highlight (requires haskell-mode) + +To use, start a server, and set the endpoint: + +#+begin_src elisp +(require 'hc) +(setq hcel-endpoint "localhost:8080") +#+end_src + +To start, run command ~hcel~ to enter the outline mode. + * Contact and Copyright The original haskell-code-explorer is written by Alexey Kiryushin |