emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-ts-mode c7969e6279 1/2: Update readme use-package


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-ts-mode c7969e6279 1/2: Update readme use-package block
Date: Fri, 18 Apr 2025 11:39:59 -0400 (EDT)

branch: elpa/haskell-ts-mode
commit c7969e6279106fed5feab00677fc51cd102b8ba2
Author: Pranshu Sharma <pranshu@bauherren.ovh>
Commit: Pranshu Sharma <pranshu@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

[Prev in Thread] Current Thread [Next in Thread]