emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes for emacs 28


From: Göktuğ Kayaalp
Subject: Re: Changes for emacs 28
Date: Thu, 10 Sep 2020 13:47:35 +0300
User-agent: mu4e 1.2.0; emacs 28.0.50

On 2020-09-09 21:35 +03, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> I'm not getting "hung up on" but I'm curious to know if it's really
> something that's expected nowadays (just like a tool-bar was expected
> at some point and maybe a tab-bar is expected nowadays, tho I find
> both of them completely useless in Emacs for my usage pattern).

Most of the popular graphical text editor applications have it on by
default.  I’ve observed Sublime Text, VS Code, Notepad++ (not sure tho),
and a few others in distant past whose names escape me now.

Notably, tho, IDEs in general don’t seem to have line numbers on by
default.

Enabling line numbers by default is, IDK.  In most special-mode type of
buffers they don’t make any sense.  In text-mode, not really needed
either.  Maybe in prog-mode, but then usually you have flymake,
flycheck, lsp or similar and they just highlight the relevant line, and
compilation errors are usually clickable (tho possibly not everybody are
using M-x compile).  Maybe when navigating via prefix args (e.g. C-5
C-n)?

Maybe, if we ever have something like a initial config wizard, we could:

  Do you want to enable line number display on the left side of the
  window in any of the following contexts?

      ( ) Programming modes only
      ( ) Text editing modes only
      ( ) Both programming and text editing modes
      ( ) Everywhere

> And it does make it clear that regardless if we change the default, it
> should be very easy and obvious how to enable (or disable) it.

Maybe a toggle inserted into the very left hand side of the mode line?
E.g., try:

(setq
 mode-line-format
 (cons
  '(:eval
    (propertize
     "# "
     'help-echo  "mouse-1: Toggle line number display"
     'mouse-face 'mode-line-highlight

     'local-map
     (make-mode-line-mouse-map
      'mouse-1 #'display-line-numbers-mode)))
  mode-line-format))

>> I'm not saying Email+IRC isn't fit for purpose, it's simply not
>> something I was used to using like this (until months after I got into
>> Emacs).
> Yup.  So the only possible meeting point is one that is ethically
> acceptable (Free Software, open protocol, non-centralized control), and
> can be accessed from within Emacs as well as via more popular UIs.
>
> Any suggestion what this could be?

A Mastodon (or equivalent) instance for Emacs?  A lot of Emacs users
there already.

There’s an Emacs client, mastodon.el, which is nice but has some
polishing to be done.  Haven’t used it much tho.


--
İ. Göktuğ Kayaalp / @cadadr / <https://www.gkayaalp.com/>
pgp:   024C 30DD 597D 142B 49AC 40EB 465C D949 B101 2427



reply via email to

[Prev in Thread] Current Thread [Next in Thread]