Giter Site home page Giter Site logo

Scratch buffers about atom HOT 7 CLOSED

atom avatar atom commented on May 7, 2024
Scratch buffers

from atom.

Comments (7)

defunkt avatar defunkt commented on May 7, 2024

I really dislike *scratch* fwiw. It's meant to save you time but as a beginner adds so much complexity to the editor. As the first buffer you ever see it seems strange and important, but it's actually neither.

cmd+n then M-x emacs-lisp-mode is not hard, especially for someone who is often writing in Emacs Lisp mode. You could easily create a keyboard shortcut to emulate the behavior.

The *scratch* mode didn't encourage me to learn Emacs Lisp, playing in ~/.emacs did. I agree that it should be easy to run a region of code from a .coffee or .js file but I think we should stick to making it really easy to jump to your ~/.atom/atom.coffee file instead of adding a whole new concept to the app.

In atom we have the advantage of knowing you have an ~./atom directory immediately, because we create it.

from atom.

wfarr avatar wfarr commented on May 7, 2024

The Emacs Lisp evaluation is only one part of why I like *scratch*.

Emacs allows you to create arbitrary buffers not coupled to a file path. I use them all the time for just dropping a piece of text so I can come back to it later. That's really the most important part of *scratch* to me.

from atom.

defunkt avatar defunkt commented on May 7, 2024

I'm only against having this be turned on by default. I'd install and use a Scratch extension, but the way Emacs presents it as a core editor concept is crazy confusing.

Part of that is fileless buffers - I think they're confusing too. They get persisted somewhere, right? Why is it hidden behind a smokescreen? It'd be nicer to call them autosave buffers and have the path automatically chosen, e.g. ~/.atom/scratch in this case.

from atom.

wfarr avatar wfarr commented on May 7, 2024

I'm okay with having them be an extension.

The *scratch* buffer is not attached to any file and is not persisted. You may persist a file-less buffer by forcing a "save as" and specifying a path.

Additionally, Emacs will only prompt to write an unsaved buffer at exit if and only if that buffer is attached to a file path.

from atom.

erebor avatar erebor commented on May 7, 2024

It's funny, the scratch buffer was one of the few things I did
understand when I started emacs-ing.

In fact, it may still be the only thing about emacs I really understand. :)

On Mon, Oct 22, 2012 at 3:51 PM, Will Farrington
[email protected]:

I'm okay with having them be an extension.

The scratch buffer is not attached to any file and is not persisted.
You may persist a file-less buffer by forcing a "save as" and
specifying a path.

Additionally, Emacs will only prompt to write an unsaved buffer at exit if
and only if that buffer is attached to a file path.


Reply to this email directly or view it on GitHubhttps://github.com//issues/77#issuecomment-9680100.

from atom.

ergwun avatar ergwun commented on May 7, 2024

Now see:
https://atom.io/packages/scratch

from atom.

lock avatar lock commented on May 7, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

from atom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.