projects
/
~bandali
/
configs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
emacs: ibuffer: show longer buffer names, add exwm filter group
[~bandali/configs]
/
.emacs.d
/
init.el
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
2abf0fa
..
c2fc616
100644
(file)
--- a/
.emacs.d/init.el
+++ b/
.emacs.d/init.el
@@
-395,16
+395,18
@@
For disabling the behaviour for certain buffers and/or modes."
(global-auto-revert-non-file-buffers nil))
;; time and battery in mode-line
(global-auto-revert-non-file-buffers nil))
;; time and battery in mode-line
-(
comment
- (use-feature time
- :init
- (setq display-time-default-load-average nil)
- :config
-
(display-time-mode
))
+(
use-feature time
+ :config
+ (display-time-mode)
+ :custom
+ (display-time-default-load-average nil)
+
(display-time-format "%a %b %-e, %-l:%M%P"
))
- (use-feature battery
- :config
- (display-battery-mode)))
+(use-feature battery
+ :config
+ (display-battery-mode)
+ :custom
+ (battery-mode-line-format " %p%% %t"))
(use-feature fringe
:demand
(use-feature fringe
:demand
@@
-567,13
+569,13
@@
For disabling the behaviour for certain buffers and/or modes."
exwm-workspace-number 4
exwm-workspace-index-map (lambda (i) (number-to-string (1+ i))))
exwm-workspace-number 4
exwm-workspace-index-map (lambda (i) (number-to-string (1+ i))))
- ;; Make class name the buffer name, truncating beyond
5
0 characters
+ ;; Make class name the buffer name, truncating beyond
6
0 characters
(defun exwm-rename-buffer ()
(interactive)
(exwm-workspace-rename-buffer
(concat exwm-class-name ":"
(defun exwm-rename-buffer ()
(interactive)
(exwm-workspace-rename-buffer
(concat exwm-class-name ":"
- (if (<= (length exwm-title)
5
0) exwm-title
- (concat (substring exwm-title 0
4
9) "...")))))
+ (if (<= (length exwm-title)
6
0) exwm-title
+ (concat (substring exwm-title 0
5
9) "...")))))
(add-hook 'exwm-update-class-hook 'exwm-rename-buffer)
(add-hook 'exwm-update-title-hook 'exwm-rename-buffer)
(add-hook 'exwm-update-class-hook 'exwm-rename-buffer)
(add-hook 'exwm-update-title-hook 'exwm-rename-buffer)
@@
-1082,10
+1084,11
@@
This function is intended for use with `ivy-ignore-buffers'."
(or
(name . "^\\*scratch\\*$")
(name . "^\\*Messages\\*$")))
(or
(name . "^\\*scratch\\*$")
(name . "^\\*Messages\\*$")))
+ ("exwm" (mode . exwm-mode))
("erc" (mode . erc-mode)))))
(ibuffer-formats
'((mark modified read-only locked " "
("erc" (mode . erc-mode)))))
(ibuffer-formats
'((mark modified read-only locked " "
- (name
18 18
:left :elide)
+ (name
72 72
:left :elide)
" "
(size-h 9 -1 :right)
" "
" "
(size-h 9 -1 :right)
" "