From 7ab36e478a92b63d3e64a03efb8bd49c1c1ac2b0 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 28 May 2011 00:06:37 +0200 Subject: EMACS: Add space to line numbers Add space to line numbers when we're in text mode --- emacs.d/10-settings.el | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/emacs.d/10-settings.el b/emacs.d/10-settings.el index 5253cd1..8dab61d 100644 --- a/emacs.d/10-settings.el +++ b/emacs.d/10-settings.el @@ -1,22 +1,25 @@ (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10:antialias=true")) -(setq inhibit-startup-message t) ; don't show welcome screen -(setq require-final-newline t) ; always append a newline to a - ; file, if it doesn't have one -(setq font-lock-maximum-decoration t) ; denotes my interest in maximum - ; possible fontification -(setq inhibit-default-init t) ; don't load default init -(setq-default indent-tabs-mode nil) ; spaces, no tabs -(setq scroll-conservatively 10000) ; scroll only one line -(setq whitespace-style '(face trailing)) - -(setq backup-directory-alist ; backup file location +(setq-default indent-tabs-mode nil) ; spaces, no tabs +(setq inhibit-startup-message t ; don't show welcome screen + require-final-newline t ; always append a newline to a + ; file, if it doesn't have one + font-lock-maximum-decoration t ; denotes my interest in maximum + ; possible fontification + inhibit-default-init t ; don't load default init + scroll-conservatively 10000 ; scroll only one line + whitespace-style '(face trailing) + backup-directory-alist ; backup file location `((".*" . - ,temporary-file-directory))) -(setq auto-save-file-name-transforms ; autosave file location + ,temporary-file-directory)) + auto-save-file-name-transforms ; autosave file location `((".*" ,temporary-file-directory t))) +(if (not window-system) + (setq linum-format "%d ")) ; add a space if we're in text + ; mode + (fset 'yes-or-no-p 'y-or-n-p) ; switch yes or no to y or n (tool-bar-mode -1) ; no toolbar -- cgit v1.2.3-54-g00ecf