Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enlarged org-mode fonts cut off line numbers #14

Open
jgarvin opened this issue Jun 14, 2015 · 5 comments
Open

Enlarged org-mode fonts cut off line numbers #14

jgarvin opened this issue Jun 14, 2015 · 5 comments

Comments

@jgarvin
Copy link

jgarvin commented Jun 14, 2015

Edit: oops, accidentally submitted with no explanation

Using the cyberpunk theme (https://github.com/n3mo/cyberpunk-theme.el) which enlarges org-mode headlines, the relative line numbers will get cut off on any lines using the enlarged font size. Reproduced on emacs 24.3 with -Q except for the cyberpunk theme and linum-relative loaded. Screenshot:

http://i.imgur.com/kfp4IMD.png

@coldnew
Copy link
Owner

coldnew commented Jun 15, 2015

@jgarvin If you only use linum-mode ( M-x linum-mode ) with cyberpunk theme but without linum-relative loaded, the problem is still occurred ?

@jgarvin
Copy link
Author

jgarvin commented Oct 7, 2015

@coldnew Just tried, ran emacs with -Q twice, once with cyberpunk+linum and once with cyberpunk+linum-relative, and it only happens with linum-relative.

@kshenoy
Copy link

kshenoy commented Jul 20, 2016

This doesn't seem to be a linum-relative issue but could be a linum issue. See this discussion here.

@HarumiKiyama
Copy link

I meet the same problem and I set the variable linum-relative-format to "%4s" , and it works. So maybe you custom the same variable.

@nikadon
Copy link

nikadon commented Nov 10, 2016

This one also works for me

     (global-relative-line-numbers-mode +1)
     (setq relative-line-numbers-motion-function 'forward-visible-line)
     (set-face-attribute 'linum nil :height 100)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants