Giter Site home page Giter Site logo

Comments (9)

JulienTant avatar JulienTant commented on August 19, 2024 3

As long as we have to way to turn if off if desired :P I usually prefer refering to my modline to get my position and have as much "screen space" as possible for the content of my page.

Note: I'm having eye issues and let's say I "zoom" a lot :P
image

from crafted-emacs.

ajxn avatar ajxn commented on August 19, 2024 2

I would suggest that use a defcustom for this. And that it is turned on in prog-mode, as I can't see the use of it in any text-mode.

Alternatively copy some example code into example-config.el where the user can make a decision of their own, but they see how to turn it on/off there. As it is now, there are nothing in example-config.el and that is not much of an example. :-)
But then again, there are some examples in README.org.

Open up #52 to look at this in a more stuctured way.

from crafted-emacs.

jeastman avatar jeastman commented on August 19, 2024 2

As it is now, there are nothing in example-config.el and that is not much of an example. :-)

See PR #53 :-)

from crafted-emacs.

japhir avatar japhir commented on August 19, 2024 1

I still don't understand what problem showing line numbers solves: I guess with relative lines you can jump up or down quickly week 10j, but at that point I'd prefer to jump via search

from crafted-emacs.

jeffbowman avatar jeffbowman commented on August 19, 2024

I agree, turning on line numbers does make sense as a default option. I prefer to defer to the eventual user to make them relative if that is their preference. That being said, perhaps a defun could be provided that would configure it that way so they only have to call it?

from crafted-emacs.

erikLundstedt avatar erikLundstedt commented on August 19, 2024

obviously we should be able to turn it off(although i personally use it globaly)
i just feel its a really sensible default to have it on

from crafted-emacs.

jeffbowman avatar jeffbowman commented on August 19, 2024

@japhir it solves the same problem as seeing the line number in the modeline, however, more of them may be seen at a glance than just the one where the point is.

I made some comments on another issue that might be relevant here: #35 (comment)

from crafted-emacs.

jeffbowman avatar jeffbowman commented on August 19, 2024

Can this be closed? Line numbers are available to optionally turn on in rational-ui.el, and making them relative is a matter of adding a customization after turning them on:

    (require 'rational-ui)
    (with-eval-after-load "rational-ui"
      (customize-set-variable 'rational-ui-display-line-numbers t) ; turn on line numbers
      (customize-set-variable 'display-line-numbers-type 'relative)) ; set the line numbers to be relative

See also #99

from crafted-emacs.

jeffbowman avatar jeffbowman commented on August 19, 2024

Closing this issue since there has been no additional discussion and #99 is also closed.

from crafted-emacs.

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.