-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Line Number layout too close when using spacemacs in iTerm(and OSX terminal) #5609
Comments
This is probably because fringes are not available in the terminal. You could add padding yourself using (unless (display-graphic-p)
(setq linum-format "%d "))
;; Alternatively
(unless (display-graphic-p)
(setq linum-format (concat linum-format " "))) |
it does not work while dotspacemacs-line-numbers set to relative dotspacemacs-line-numbers 'relative I have resolved the it... ;; codes in linum-relative.el
(defcustom linum-relative-format "%3s "
"Format for each line. Good for adding spaces/paddings like so: \" %3s \""
:type 'string
:group 'linux-relative) ..., so, what we should do is just adding following snippets into user-config: (unless (display-graphic-p)
(setq linum-relative-format "%3s "))
;; Alternatively
(unless (display-graphic-p)
(setq linum-relative-format (concat linum-relative-format " "))) |
I still have this issue. @MephistoMMM Did I miscomprehend how to use the workaround? That is the bottom of my .spacemacs file. I have restarted emacs with this configuration, and that is what linum-mode looks like. |
Well, I mean, add the snippets into (defun dotspacemacs/user-config ()
(unless (display-graphic-p)
(setq linum-relative-format "%3s "))
;; Alternatively
(unless (display-graphic-p)
(setq linum-relative-format (concat linum-relative-format " ")))
) Not the bottom of your .spacemacs file |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
This issue is still valid on the latest version of emacs and spacemacs on iTerm2. This solution works but I'm confused as I thought |
|
Closing due to its age. For future references a work around is available for users of But Spacemacs now requires >Emacs 27 and |
When using Gui Emacs
![image](https://cloud.githubusercontent.com/assets/6420577/14064873/c41077e2-f445-11e5-869b-93ad84463d83.png)
There is a space between line number and code region
But using spacemacs in iTerm2 (Terminal the same), they become too close
![image](https://cloud.githubusercontent.com/assets/6420577/14064869/9e30752c-f445-11e5-94d1-cbecb073b32b.png)
The text was updated successfully, but these errors were encountered: