From c3982e3d15555dae4a07e7ce2cd6376354b9ae33 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 20 Mar 2012 01:52:21 +0000 Subject: [PATCH] Disabled fringes and started using linum+ in console and GUI. --- appearance.el | 7 +++---- custom-variables.el | 2 +- packages.el | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/appearance.el b/appearance.el index 4c950d1..a1c315e 100644 --- a/appearance.el +++ b/appearance.el @@ -26,10 +26,9 @@ ;; Highlight current line globally (global-hl-line-mode t) -;; Customize line numbers when running in a console -(unless window-system - (setq linum+-smart-format "%%%dd ") - (setq linum+-dynamic-format "%%%dd ")) +;; Customize line numbers +(setq linum+-smart-format " %%%dd ") +(setq linum+-dynamic-format " %%%dd ") ;; meaningful names for buffers with the same name (require 'uniquify) diff --git a/custom-variables.el b/custom-variables.el index c939639..9a13c52 100644 --- a/custom-variables.el +++ b/custom-variables.el @@ -37,7 +37,7 @@ '(fci-handle-truncate-lines nil) '(fci-rule-width 1) '(fill-column 78) - '(fringe-mode (quote (4 . 4)) nil (fringe)) + '(fringe-mode 0 nil (fringe)) '(global-auto-revert-mode t) '(global-undo-tree-mode t) '(history-length 500) diff --git a/packages.el b/packages.el index fba3c1e..5b5f3ee 100644 --- a/packages.el +++ b/packages.el @@ -168,8 +168,8 @@ (require 'undo-tree) ;; Load Linum+ - (unless window-system - (require 'linum+)) + (when (require 'linum+ nil 'noerror) + (setq linum-format 'dynamic)) ;; Load full-ack (require 'full-ack)