tonyaldon / org-bars

org-bars-mode is a minor mode for org-mode. It adds bars to the virtual indentation provided by the built-in package org-indent.
118 stars 5 forks source link

If using line numbers, the bars are dislocated #8

Open algon-ns opened 3 years ago

algon-ns commented 3 years ago
Skærmbillede 2021-11-08 kl  08 19 08
tonyaldon commented 3 years ago

Hi @algon-ns, thank you for reporting the issue.

I'm running emacs 28.0.50 and for me it works correctly with line numbers either using linum-mode or display-line-numbers-mode.

I don't know why it doesn't work for you.

Can you give me more information?

Are you using linum-mode or display-line-numbers-mode or anything else?

What is your emacs version? (you can get it with M-x emacs-version)

Have a nice day

algon-ns commented 3 years ago

This is info about the system.

(require 'display-line-numbers) (defcustom display-line-numbers-exempt-modes '(vterm-mode eshell-mode pdf-view-mode shell-mode term-mode ansi-term-mode) "Major modes on which to disable the linum mode, exempts them from global requirement" :group 'display-line-numbers :type 'list :version "green”)

GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2021-11-06 built on macal.local Repository revision: 6d406aee501cb6462075149683e492956ce9b7f3 Repository branch: master Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.0.1

Configured using: 'configure --with-native-compilation --with-xwidgets --with-mailutils'

Configured features: ACL DBUS GLIB GNUTLS JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TOOLKIT_SCROLL_BARS WEBP XIM XWIDGETS ZLIB

Important settings: value of $LC_ALL: en_DK.UTF-8 value of $LANG: da_DK.UTF-8 locale-coding-system: utf-8

Major mode: Dashboard

Minor modes in effect: gcmh-mode: t global-emojify-mode: t emojify-mode: t dap-tooltip-mode: t dap-ui-controls-mode: t dap-ui-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: t treemacs-fringe-indicator-mode: t dap-mode: t pyvenv-mode: t projectile-mode: t global-git-gutter-mode: t org-super-agenda-mode: t global-flycheck-mode: t company-box-mode: t global-page-break-lines-mode: t page-break-lines-mode: t shell-dirtrack-mode: t dimmer-mode: t beacon-mode: t company-quickhelp-mode: t company-quickhelp-local-mode: t el-patch-use-package-mode: t company-statistics-mode: t global-company-mode: t company-mode: t ido-everywhere: t async-bytecomp-package-mode: t keyfreq-autosave-mode: t keyfreq-mode: t global-hl-line-mode: t global-display-line-numbers-mode: t ctrlf-mode: t ctrlf-local-mode: t all-the-icons-ivy-rich-mode: t ivy-rich-mode: t override-global-mode: t xterm-mouse-mode: t display-time-mode: t delete-selection-mode: t straight-use-package-mode: t straight-package-neutering-mode: t straight-live-modifications-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t global-prettify-symbols-mode: t tab-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t global-visual-line-mode: t transient-mark-mode: t

Med venlig hilsen Niels applewebdata://9BC9B610-E9AA-4908-A6C0-C0FB156609EB Niels Søndergaard Mariehøj 236, 2990 Nivå <tel:+45 4052 2789>+45 4052 @. @.> Ultra posse nemo obligatur.

Den 12. nov. 2021 kl. 09.06 skrev Tony @.***>:

Hi @algon-ns https://github.com/algon-ns, thank you for reporting the issue.

I'm running emacs 28.0.50 and for me it works correctly with line numbers either using linum-mode or display-line-numbers-mode.

I don't know why it doesn't work for you.

Can you give me more information?

Are you using linum-mode or display-line-numbers-mode or anything else?

What is your emacs version? (you can get it with M-x emacs-version)

Have a nice day

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tonyaldon/org-bars/issues/8#issuecomment-966903097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7YBR6SW65AQW6JWV65SRDULTDJTANCNFSM5HR5WIFA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

TomoeMami commented 2 years ago

(setq display-line-numbers-width-start t) may fix it for you