Skip to content

Instantly share code, notes, and snippets.

@hnarayanan
Created November 25, 2023 14:43
Show Gist options
  • Save hnarayanan/a6397d6723fce19e2802d4305071e611 to your computer and use it in GitHub Desktop.
Save hnarayanan/a6397d6723fce19e2802d4305071e611 to your computer and use it in GitHub Desktop.
Emacs python-ts blowup
$ 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
def main():
print("Hello World")
if __name__ == "__main__":
main()
(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