From 5211216e71add151bce9a8be67b4bd63da4bf54d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 5 Oct 2011 11:53:41 +0100 Subject: [PATCH] only use linum+ in console mode --- appearance.el | 6 ++---- packages.el | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/appearance.el b/appearance.el index 27a88e7..6030aad 100644 --- a/appearance.el +++ b/appearance.el @@ -26,10 +26,8 @@ ;; Display line numbers globally (global-linum-mode t) -(when (require 'linum+ nil 'noerror) - (if window-system - (setq linum+-smart-format "%%%dd" linum+-dynamic-format "%%%dd") - (setq linum+-smart-format "%%%dd " linum+-dynamic-format "%%%dd "))) +(if window-system () + (setq linum+-smart-format "%%%dd " linum+-dynamic-format "%%%dd ")) ;; scroll one line at a time (less "jumpy" than defaults) (setq mouse-wheel-scroll-amount '(1 ((shift) . 1)) ;; one line at a time diff --git a/packages.el b/packages.el index be7728d..bcca6c3 100644 --- a/packages.el +++ b/packages.el @@ -132,7 +132,8 @@ (require 'undo-tree) ;; Load Linum+ -(require 'linum+) +(if window-system () + (require 'linum+)) ;; Load full-ack (require 'full-ack)