Created
November 25, 2023 14:43
-
-
Save hnarayanan/a6397d6723fce19e2802d4305071e611 to your computer and use it in GitHub Desktop.
Emacs python-ts blowup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ port echo installed | grep emacs | |
emacs-app @29.1_2+nativecomp+rsvg+treesitter | |
$ emacs hello.py | |
# This balloons to over 30 GB of memory use in seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
print("Hello World") | |
if __name__ == "__main__": | |
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'major-mode-remap-alist | |
'(python-mode . python-ts-mode)) | |
(use-package python | |
:ensure t | |
:hook ((python-ts-mode . eglot-ensure)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment