branch: elpa/haskell-ts-mode
commit c7969e6279106fed5feab00677fc51cd102b8ba2
Author: Pranshu Sharma <pran...@bauherren.ovh>
Commit: Pranshu Sharma <pran...@bauherren.ovh>

    Update readme use-package block
    
    The README use package block will now specify the grammer version
    fully, as well as install it if not already done.  Before the readme
    did not mention the grammer, but now it is fixed 8-)
    
    has somethign to do with issues: #24 #4 #21
---
 README.org | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index ac8aaab1ce..c727823236 100644
--- a/README.org
+++ b/README.org
@@ -86,9 +86,17 @@ Add this into your init.el:
     (haskell-ts-font-lock-level 4)
     (haskell-ts-use-indent t)
     (haskell-ts-ghci "ghci")
-    (haskell-ts-use-indent t))
+    (haskell-ts-use-indent t)
+    :config
+    (add-to-list 'treesit-language-source-alist
+     '(haskell . ("https://github.com/tree-sitter/tree-sitter-haskell"; 
"v0.23.1")))
+    (unless (treesit-grammar-location 'haskell)
+     (treesit-install-language-grammar 'haskell)))
 #+end_src
 
+That is all.  This will install the grammars if not already installed.
+However, you might need to update the grammar version in the future.
+
 * Customization
 
 ** How to disable =haskell-ts-mode= indentation

Reply via email to