Update buffer display settings
This commit is contained in:
parent
96e30cf2a0
commit
4d36ff9551
1 changed files with 15 additions and 4 deletions
|
@ -439,6 +439,10 @@ PLIST contains all the pertinent ifnormation."
|
||||||
(c-set-offset 'arglist-close '0)
|
(c-set-offset 'arglist-close '0)
|
||||||
(setq-local fci-rule-column 80))
|
(setq-local fci-rule-column 80))
|
||||||
|
|
||||||
|
(defun oni:pop-to-buffer-in-side-window (buffer alist)
|
||||||
|
(display-buffer-in-side-window buffer alist)
|
||||||
|
(select-window (get-buffer-window buffer)))
|
||||||
|
|
||||||
(defun oni:print-keymap (keymap)
|
(defun oni:print-keymap (keymap)
|
||||||
"Recursively print KEYMAP with keys as characters."
|
"Recursively print KEYMAP with keys as characters."
|
||||||
(mapcar (lambda (itm)
|
(mapcar (lambda (itm)
|
||||||
|
@ -1283,12 +1287,19 @@ from myaethon2.core.decorators import (
|
||||||
|
|
||||||
(stante-after "window"
|
(stante-after "window"
|
||||||
(setq split-height-threshold 40)
|
(setq split-height-threshold 40)
|
||||||
|
(add-to-list 'display-buffer-alist
|
||||||
|
`(,(rx bol "*" (or (and (optional (one-or-more any) "-") "scratch")
|
||||||
|
(and "magit: " (one-or-more any))) "*" eol)
|
||||||
|
display-buffer-same-window))
|
||||||
|
(add-to-list 'display-buffer-alist
|
||||||
|
`(,(rx bol "*" (or "Flycheck errors*"
|
||||||
|
(and (or "ielm" "eshell") "*" eol)))
|
||||||
|
oni:pop-to-buffer-in-side-window))
|
||||||
|
(add-to-list 'display-buffer-alist
|
||||||
|
`(,(rx bol "*server*" eol) display-buffer-in-side-window))
|
||||||
(add-to-list
|
(add-to-list
|
||||||
'display-buffer-alist
|
'display-buffer-alist
|
||||||
'("^\\*\\(?:.+-\\)?scratch\\*$" display-buffer-same-window))
|
'("^\\*Help\\*$" display-buffer-in-side-window)))
|
||||||
(add-to-list
|
|
||||||
'display-buffer-alist
|
|
||||||
'("^\\*magit: .*\\*$" display-buffer-same-window)))
|
|
||||||
|
|
||||||
(stante-after woman
|
(stante-after woman
|
||||||
(setq woman-fill-column 72))
|
(setq woman-fill-column 72))
|
||||||
|
|
Loading…
Reference in a new issue