mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
29 lines
628 B
EmacsLisp
29 lines
628 B
EmacsLisp
;;; siren-linum.el --- jimeh's Emacs Siren: linum configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for linum.
|
|
|
|
;;; Code:
|
|
|
|
(use-package linum
|
|
:ensure nil ;; loaded from emacs built-ins
|
|
|
|
:hook
|
|
(prog-mode . linum-mode))
|
|
|
|
(use-package linum+
|
|
:ensure nil ;; loaded from vendor
|
|
:after linum
|
|
|
|
:custom
|
|
;; Customize line numbers - In GUI mode the fringe is the spacer between line
|
|
;; numbers and code, while in console mode we add an extra space for it.
|
|
(linum+-dynamic-format (if window-system " %%%dd" " %%%dd "))
|
|
|
|
:config
|
|
(setq linum-format 'dynamic))
|
|
|
|
(provide 'siren-linum)
|
|
;;; siren-linum.el ends here
|