X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig%2Finit-linum.el;h=142403b52975370f1fc79583f2645fc3b8442504;hb=86480c046562f4e62078fa95d5b7fe7f8d3340fd;hp=98b1af91afdc579da93844e8bcb2bc32bdc8867a;hpb=c46e5ba97a3189e9877f69414e4af58b2da1e6bc;p=dotfiles.git diff --git a/emacs.d/config/init-linum.el b/emacs.d/config/init-linum.el index 98b1af9..142403b 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"))) @@ -36,4 +49,18 @@ (global-linum-mode t) (add-hook 'linum-before-numbering-hook 'my-linum-get-format-string) + + + + +;; enable linum-relative in programming mode +;https://github.com/howardabrams/dot-files/blob/master/emacs.org +(add-hook 'prog-mode-hook 'linum-mode) + +;; hight current line +(require 'highlight-current-line) +(highlight-current-line-on t) + + + (provide 'init-linum)