mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
spaceline code clean up
This commit is contained in:
@ -11,8 +11,8 @@
|
|||||||
(blink-cursor-mode 1) ; do blink cursor
|
(blink-cursor-mode 1) ; do blink cursor
|
||||||
(line-number-mode 1) ; do show line no in modeline
|
(line-number-mode 1) ; do show line no in modeline
|
||||||
(column-number-mode 1) ; do show col no in modeline
|
(column-number-mode 1) ; do show col no in modeline
|
||||||
(size-indication-mode 1) ; do show file size
|
|
||||||
(tooltip-mode -1) ; don't show tooltips
|
(tooltip-mode -1) ; don't show tooltips
|
||||||
|
;; (size-indication-mode 1) ; do show file size
|
||||||
|
|
||||||
(setq-default
|
(setq-default
|
||||||
;; Multiple cursors across buffers cause a strange redraw delay for
|
;; Multiple cursors across buffers cause a strange redraw delay for
|
||||||
@ -113,16 +113,10 @@
|
|||||||
(let ((l (length path))) (substring path (- l max-length) l))))
|
(let ((l (length path))) (substring path (- l max-length) l))))
|
||||||
path)))
|
path)))
|
||||||
(powerline-buffer-id)))
|
(powerline-buffer-id)))
|
||||||
(if (buffer-modified-p) (propertize "*" 'font-lock-face '(:inherit powerline-active1 :foreground "orange")))
|
(if (buffer-modified-p) (propertize "*" 'font-lock-face '(:inherit mode-line :foreground "orange")))
|
||||||
" ")
|
" ")
|
||||||
:tight-right t)
|
:tight-right t)
|
||||||
|
|
||||||
(spaceline-define-segment narf-buffer-modified
|
|
||||||
"Buffer modified marker."
|
|
||||||
(if (buffer-modified-p) "*")
|
|
||||||
:face highlight-face
|
|
||||||
:tight t)
|
|
||||||
|
|
||||||
(spaceline-define-segment narf-buffer-encoding-abbrev
|
(spaceline-define-segment narf-buffer-encoding-abbrev
|
||||||
"The line ending convention used in the buffer."
|
"The line ending convention used in the buffer."
|
||||||
(let ((buf-coding (format "%s" buffer-file-coding-system)))
|
(let ((buf-coding (format "%s" buffer-file-coding-system)))
|
||||||
|
Reference in New Issue
Block a user