From 813f2b1b40abcc103f2db5fa28b4ed8a36b15945 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 16 Jul 2014 10:48:03 +0100 Subject: [PATCH] Enable fringe in GUI mode --- appearance.el | 6 ++++-- custom-variables.el | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appearance.el b/appearance.el index c1de224..081c535 100644 --- a/appearance.el +++ b/appearance.el @@ -38,8 +38,10 @@ ;; Don't use OSX Native fullscreen mode (setq ns-use-native-fullscreen nil) -;; Customize line numbers -(setq linum+-dynamic-format " %%%dd ") +;; Customize line numbers - In gui mode the fringe is the spacer between line +;; numbers and code, while in console mode we add an extra space for it. +(if gui-window-system (setq linum+-dynamic-format " %%%dd") + (setq linum+-dynamic-format " %%%dd ")) ;; Linum+ resets linum-format to "smart" when it's loaded, hence we have to ;; use a eval-after-load hook to set it to "dynamic". diff --git a/custom-variables.el b/custom-variables.el index cc93c8b..5192c04 100644 --- a/custom-variables.el +++ b/custom-variables.el @@ -51,7 +51,6 @@ '(fci-rule-width 1) '(fill-column 78) '(flycheck-rubocop-lint-only t) - '(fringe-mode 0 nil (fringe)) '(global-auto-revert-mode t) '(global-undo-tree-mode t) '(helm-ag-source-type (quote file-line))