summaryrefslogtreecommitdiffstats
path: root/emacs.d/init.el
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-18 15:21:09 -0400
committerDavid Robillard <d@drobilla.net>2015-10-18 15:21:09 -0400
commitfce7a9fc328f8c3660497db2372ce1253557542c (patch)
treeff74198363c0833b7d5989023f5010addcd8b640 /emacs.d/init.el
parentcfcb672434037a4a7f7fa4dbed9a462356fb924a (diff)
downloaddotfiles-fce7a9fc328f8c3660497db2372ce1253557542c.tar.gz
dotfiles-fce7a9fc328f8c3660497db2372ce1253557542c.tar.bz2
dotfiles-fce7a9fc328f8c3660497db2372ce1253557542c.zip
Fix spaceline buffer position
Diffstat (limited to 'emacs.d/init.el')
-rw-r--r--emacs.d/init.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 763e07e..e86d07b 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -25,15 +25,20 @@
;;; Basic editor configuration
+(defalias 'yes-or-no-p 'y-or-n-p)
+(delete-selection-mode 1)
+(winner-mode 1)
(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)
(setq-default scroll-margin 3)
(setq-default show-trailing-whitespace t)
-(delete-selection-mode 1)
-(defalias 'yes-or-no-p 'y-or-n-p)
(spaceline-emacs-theme)
(spaceline-toggle-buffer-size)
-(winner-mode 1)
+(spaceline-toggle-hud)
+(spaceline-define-segment buffer-position
+ "Buffer position in percent, padded to work around spaceline bug"
+ (format "%02d%%%% " (/ (* 100 (- (line-number-at-pos) 1))
+ (count-lines (point-min) (point-max)))))
;;; Variables
@@ -122,7 +127,7 @@
'(nobreak-space ((((class color) (min-colors 88)) (:inherit escape-glyph :underline t))))
'(powerline-active2 ((t (:inherit mode-line :background "#2D3232"))))
'(smerge-refined-change ((t (:background "gray20"))))
- '(spaceline-highlight-face ((t (:background "#335533" :foreground "#FFFFFF" :inherit (quote mode-line)))))
+ '(spaceline-highlight-face ((t (:background "#383838" :foreground "#FFFFFF" :inherit (quote mode-line)))))
'(spaceline-modified ((t (:background "#A66" :foreground "#3E3D31" :inherit (quote mode-line)))))
'(spaceline-unmodified ((t (:background "#777" :foreground "#3E3D31" :inherit (quote mode-line)))))
'(whitespace-newline ((t (:foreground "grey20" :weight normal))))