This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-28
Channels
- # announcements (19)
- # aws (4)
- # babashka (17)
- # beginners (74)
- # biff (2)
- # calva (5)
- # cider (6)
- # clerk (14)
- # clj-kondo (12)
- # cljs-dev (3)
- # clojure (40)
- # clojure-dev (26)
- # clojure-europe (28)
- # clojure-nl (1)
- # clojure-norway (39)
- # clojure-sweden (1)
- # clojure-uk (4)
- # conjure (2)
- # docker (35)
- # emacs (24)
- # graalvm (15)
- # graphql (1)
- # gratitude (4)
- # holy-lambda (2)
- # hyperfiddle (8)
- # introduce-yourself (3)
- # jobs (3)
- # nrepl (2)
- # off-topic (9)
- # pedestal (8)
- # reitit (5)
- # releases (3)
- # remote-jobs (3)
- # yamlscript (1)
working with stupidly big json files & co means that every time I accidentally try to paste something too big it will still pretty much crash my Emacs. I was wondering, should not there be a setting that just not allow me to paste something too big? I never really want to paste in 1MB of JSON in a buffer anyway, could Emacs just refuse?
ah actually the last function mentioned there seems interesting https://www.reddit.com/r/emacs/comments/gsazzi/emacs_crawls_when_pasting_large_amounts_of_text/
There might be better solutions, but I think you could do something with advice. E.g. This code indents yanked code, if it’s not too large: https://github.com/bbatsov/prelude/blob/master/core/prelude-editor.el#L285-L308 So you could delete it instead (or something similar that stops it from being inserted in the first place, if possible)
Ah, sorry, misread the question. It is about yanking, not about evaluation results.
yeah just yanking of massive amount of texts
I expect what's making emacs crash is the major mode trying to process all that text. https://elpa.gnu.org/packages/so-long.html can avoid that. I have it globally enabled. It may make it so you can undo the paste.
it's a long shot, but what version of emacs are you on? thinking of https://lars.ingebrigtsen.no/2022/08/19/19x10/ which made it into core a while back
yeah it's not that, it's just that they are really massive
but ok I've tried to enable so-long as well
Originally asked in #C053AK3F9, but there was not response in a day, so trying here in #C099W16KZ Hi, I just installed https://github-com.translate.goog/copilot-emacs/copilot.el but I’m constantly spammed with this error:
⛔ Warning (copilot): copilot--infer-indentation-offset found no mode-specific indentation offset.
That’s because I need to define indentation for Clojure. There are some defaults:
(defcustom copilot-indentation-alist
(append '((latex-mode tex-indent-basic)
(nxml-mode nxml-child-indent)
(python-mode python-indent py-indent-offset python-indent-offset)
(python-ts-mode python-indent py-indent-offset python-indent-offset)
(web-mode web-mode-markup-indent-offset web-mode-html-offset))
editorconfig-indentation-alist)
"Alist of `major-mode' to indentation map with optional fallbacks."
:type '(alist :key-type symbol :value-type (choice integer symbol))
:group 'copilot)
Is clojure-align
equivalent to what is defined on other languages? Is there an editorconfig-indentation-alist
somewhere that includes Clojure, Elisp, ...?hey @UNUH8H85U, I'm having the same problem. Were you able to figure this out?
yeah, no luck unfortunately.