EMACS: Add space to line numbers
Add space to line numbers when we're in text mode
This commit is contained in:
parent
136128abd1
commit
7ab36e478a
1 changed files with 16 additions and 13 deletions
|
@ -1,22 +1,25 @@
|
||||||
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10:antialias=true"))
|
(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-default indent-tabs-mode nil) ; spaces, no tabs
|
||||||
(setq scroll-conservatively 10000) ; scroll only one line
|
(setq inhibit-startup-message t ; don't show welcome screen
|
||||||
(setq whitespace-style '(face trailing))
|
require-final-newline t ; always append a newline to a
|
||||||
|
; file, if it doesn't have one
|
||||||
(setq backup-directory-alist ; backup file location
|
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)))
|
,temporary-file-directory))
|
||||||
(setq auto-save-file-name-transforms ; autosave file location
|
auto-save-file-name-transforms ; autosave file location
|
||||||
`((".*" ,temporary-file-directory
|
`((".*" ,temporary-file-directory
|
||||||
t)))
|
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
|
(fset 'yes-or-no-p 'y-or-n-p) ; switch yes or no to y or n
|
||||||
|
|
||||||
(tool-bar-mode -1) ; no toolbar
|
(tool-bar-mode -1) ; no toolbar
|
||||||
|
|
Loading…
Reference in a new issue