From faafbd27ecdd1ea195ce868e24f5390360ea3086 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Tue, 11 Aug 2015 22:36:22 +0800 Subject: [PATCH] emacs linum --- emacs.d/config/init-linum.el | 13 +++++++++++++ emacs.d/init.el | 4 ---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/emacs.d/config/init-linum.el b/emacs.d/config/init-linum.el index 98b1af9..a0f38d5 100644 --- a/emacs.d/config/init-linum.el +++ b/emacs.d/config/init-linum.el @@ -1,5 +1,18 @@ ;; refer to https://github.com/aaronbieber/dotfiles/blob/master/configs/emacs.d/lisp/init-linum.el ;; Stuff for line numbers. + + +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(highlight-current-line-face ((t (:background "gray22")))) + '(linum ((t (:background "#000000" :foreground "gray40" :height 0.8 :slant italic :weigth light)))) + '(linum-relative-current-face ((t (:inherit linum :foreground "Yellow" :weight light :height 0.8))))) + +(require 'linum-relative) + (defface linum-current ; '((t (:inherit linum :weight bold :underline "#555"))) '((t (:inherit linum :weight bold :foreground "Yellow"))) diff --git a/emacs.d/init.el b/emacs.d/init.el index 5441c95..0a58966 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -222,7 +222,6 @@ ;; --------------------------------- ;; linum-relative -(require 'linum-relative) (custom-set-variables ;; custom-set-variables was added by Custom. @@ -283,9 +282,6 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(highlight-current-line-face ((t (:background "gray22")))) - '(linum ((t (:background "#000000" :foreground "gray40" :height 0.8 :slant italic :weigth light)))) - '(linum-relative-current-face ((t (:inherit linum :foreground "Yellow" :weight light :height 0.8)))) '(mode-line ((t (:foreground "#030303" :background "#bdbdbd" :box nil :family "Source Code Pro for Powerline" :height 100)))) '(mode-line-inactive ((t (:foreground "#f9f9f9" :background "#666666" :box nil :family "Source Code Pro for Powerline" :height 100))))) -- 2.11.0