Communick News
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
rglullisMA to EmacsEnglish · 2 years ago

Opening Large Files

emacsredux.com

external-link
message-square
0
link
fedilink
1
external-link

Opening Large Files

emacsredux.com

rglullisMA to EmacsEnglish · 2 years ago
message-square
0
link
fedilink
I guess everyone has seen the following warning (at some point or another) when trying to open a relatively large file in Emacs: File foo.bar is large (XX.XM), really open? By default Emacs will display this warning for every file bigger than 10MB, which is quite annoying (conservative), especially given the fact that on any modern computer even much bigger files will be loaded almost instantaneously and won’t slow down Emacs significantly. You can adjust this behavior by altering the value of the large-file-warning-threshold variable. I’d suggest setting it to something like 100MB: ;; warn when opening files bigger than 100MB (setq large-file-warning-threshold 100000000) Alternative, you can set it to nil, which will suppress the warning permanently, regardless of the size of the file you’re trying to open. P.S. By the way, it’s not particularly wise to edit huge files (say bigger than 1GB) in Emacs directly. If you need to do something like this I’d suggest taking a look at the excellent vlfi package.
alert-triangle
You must log in or register to comment.

Emacs

emacs

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !emacs@communick.news
lock
Community locked: only moderators can create posts. You can still comment on posts.

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

  • Windows
  • Mac OS X
  • GNU/Linux and BSD (Just get it from your distribution’s package manager)

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for “emacs” and “vi” link to each other. We good.

Emacs Resources

  • Emacs Wiki
  • WikEmacs
  • Emacs Reference (PDF)
  • Learning & Mastering Emacs
  • Weekly tips/tricks/etc threads

Emacs Tutorials

  • Beginner’s Guide to Emacs
  • Absolute Beginner’s Guide to Emacs
  • How to Learn Emacs: A Hand-drawn One-pager for Beginners

Useful Emacs configuration files and distributions

  • Better Defaults
  • Example configurations

Quick pain-saver tip

  • Put the Caps Lock key to better use!
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 20 users / month
  • 27 users / 6 months
  • 14 local subscribers
  • 368 subscribers
  • 572 Posts
  • 2.35K Comments
  • Modlog
  • mods:
  • rglullis
  • raphael
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org