unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Scratch buffer : preventing automatic alignment ?
@ 2019-06-14 14:21 jonetsu
  2019-06-14 15:04 ` Noam Postavsky
  0 siblings, 1 reply; 3+ messages in thread
From: jonetsu @ 2019-06-14 14:21 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

This is a minor thing, but would nevertheless be nice if an alternative
is available to the default behaviour.  

When using the scratch buffer, any ENTER key will throw the
beginning of the current line at column 1.  A simple work around is to
enter a whole bunch of line feeds then add text within that zone but,
is it possible to alter this default behaviour so that entering line
feeds will just leave the current line where it is ?  This is emacs
26.1.

Cheers.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Scratch buffer : preventing automatic alignment ?
  2019-06-14 14:21 Scratch buffer : preventing automatic alignment ? jonetsu
@ 2019-06-14 15:04 ` Noam Postavsky
  2019-06-14 15:51   ` Dan Sommers
  0 siblings, 1 reply; 3+ messages in thread
From: Noam Postavsky @ 2019-06-14 15:04 UTC (permalink / raw)
  To: jonetsu; +Cc: Help Gnu Emacs mailing list

On Fri, 14 Jun 2019 at 10:56, jonetsu <jonetsu@teksavvy.com> wrote:

> When using the scratch buffer, any ENTER key will throw the
> beginning of the current line at column 1.  A simple work around is to
> enter a whole bunch of line feeds then add text within that zone but,

Or use C-q C-j.

> is it possible to alter this default behaviour so that entering line
> feeds will just leave the current line where it is ?  This is emacs
> 26.1.

Turn off electric-indent-mode perhaps?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Scratch buffer : preventing automatic alignment ?
  2019-06-14 15:04 ` Noam Postavsky
@ 2019-06-14 15:51   ` Dan Sommers
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Sommers @ 2019-06-14 15:51 UTC (permalink / raw)
  To: help-gnu-emacs

On 6/14/19 11:04 AM, Noam Postavsky wrote:
> On Fri, 14 Jun 2019 at 10:56, jonetsu <jonetsu@teksavvy.com> wrote:
> 
>> When using the scratch buffer, any ENTER key will throw the
>> beginning of the current line at column 1.  A simple work around is to
>> enter a whole bunch of line feeds then add text within that zone but,
> 
> Or use C-q C-j.
> 
>> is it possible to alter this default behaviour so that entering line
>> feeds will just leave the current line where it is ?  This is emacs
>> 26.1.
> 
> Turn off electric-indent-mode perhaps?
> 

Or switch to text mode.  My *scratch* buffer comes up in
Lisp Interaction Mode, which I think is how/why electric
indent mode comes into play.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-14 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-14 14:21 Scratch buffer : preventing automatic alignment ? jonetsu
2019-06-14 15:04 ` Noam Postavsky
2019-06-14 15:51   ` Dan Sommers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).