There are a few ways to do this -- my preferred method is to set the frame defaults for the fringes: (set-face-attribute 'fringe nil :background "red") (add-to-list 'default-frame-alist '(left-fringe . 11)) (add-to-list 'default-frame-alist '(right-fringe . 0)) It is possible to set the windows fringes globally: (setq-default left-fringe-width 11) (setq-...


emacs-26 comes with a built-in line number mode, controlled by display-line-numbers which might combine better with other packages.


If you’re using Emacs 24.4, the code you’ve posted (which I’m repeating below) should be enough. (add-hook 'edebug-mode-hook (lambda () (set-fringe-mode (set (make-local-variable 'fringe-mode) (if edebug-mode '(nil . 0) 0))))) I’m positing this as answer for completeness, I understand it doesn’t statisfy ...

Only top voted, non community-wiki answers of a minimum length are eligible