Coder Social home page Coder Social logo

hlinum-mode's Introduction

Notice

This package is obsolete because there is a better alternative in Emacs 26 and later.

Emacs 26 officially provides the display-line-numbers function to show the line numbers and you can use the line-number-current-line face to highlight the current line number. They show the better performance than linum-mode and hlinum-mode.

hlinum-mode

This library extends linum-mode to highlight current line number. It requires Emacs 24.4 or later.

To use this package, add these lines to your .emacs file:

    (require 'hlinum)
    (hlinum-activate)

And by using M-x linum-mode, you can see line numbers with highlighting current line number.

You can customize the color of highlighting current line by changing linum-highlight-face. By default, hlinum highlights current line only in the active buffer. To highlight current line in all buffers, change linum-highlight-in-all-buffersp to t.

hlinum-mode's People

Contributors

hotpxl avatar tom-tan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hlinum-mode's Issues

Highlight selection

Would it be possible also highlight selection line numbers when there is a selection ?

Conflict with git-gutter

When linum highlighting is enabled alongside git-gutter in the margin, hlinum-mode does not detect this and instead assumes that the margin is one character smaller than it is (see image) if there are git symbols present in the left margin. My configuration works fine if there are no git changes in the file.
Screenshot from 2019-03-14 12-18-52
Screenshot from 2019-03-14 12-19-09

hlinum-mode-not-working

I am using doom-emacs.
I tried to install hlinum by declaring it from package.el, M-x package-install, and form package list.
unfortunately, all didn't work. I received an error message from config.el after (require 'hlinum), (hlinum activate).
And I received an error message through initialling emacs!.
I felt that I have to mention that.

hlinum when hl-line-sticky-flag is on

What steps will reproduce the problem?
1. Activate hlinum with hl-line-sticky-flag on
2.
3.

What is the expected output? What do you see instead?

Line numbers should be highlighted in inactive buffers when hl-line-sticky-flag 
is on but this is not the case.

What version of the product are you using? On what operating system?

Current revision.

Original issue reported on code.google.com by [email protected] on 18 Aug 2012 at 6:32

can this work with emacs26.1 `display-line-numbers`?

from NEWS.26

** Emacs now supports optional display of line numbers in the buffer.
This is similar to what 'linum-mode' provides, but much faster and
doesn't usurp the display margin for the line numbers.  Customize the
buffer-local variable 'display-line-numbers' to activate this optional
display.  Alternatively, you can use the 'display-line-numbers-mode'
minor mode or the global 'global-display-line-numbers-mode'.  When
using these modes, customize 'display-line-numbers-type' with the same
value as you would use with 'display-line-numbers'.

this part from the same stanza you may find interesting.

'linum-mode' and all similar packages are henceforth becoming obsolete.
Users and developers are encouraged to switch to this new feature
instead.

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.