ITADN

Emacs freezes when deleting long chunks from big files

#233Openbechampion 创建于 2024-07-30
B
bechampioncommented
When git-gutter is enabled , and you have a substantially large files (50k lines) , if you delete let's say `100` you notice a hiccup, if you delete 20k emacs doesn't come back. File needs to be checked in git of course. For now im using this ```(defun enable-mode-for-small-files () "Enable a specific mode if the buffer has fewer than 1000 lines." (when (< (count-lines (point-min) (point-max)) 1000) (git-gutter-mode))) (add-hook 'find-file-hook 'enable-mode-for-small-files) ``` Have any of you experienced this?
0 条评论