Browse Source

Add Emacs window rules

master
Riyyi 5 years ago
parent
commit
309a9b0fda
  1. 31
      .emacs.d/config.org

31
.emacs.d/config.org

@ -596,6 +596,37 @@ Set UTF-8 encoding as default.
(set-selection-coding-system 'utf-8-unix)
#+END_SRC
** Window
#+BEGIN_SRC emacs-lisp
;; Window rules
(setq display-buffer-alist
'(
("^\\(\\*e?shell\\|vterm\\).*"
(display-buffer-in-side-window)
(window-height . 0.25)
(side . bottom)
(slot . -1)
(centaur-tabs-local-mode 1))
("\\*Help.*"
(display-buffer-in-side-window)
(window-height . 0.25)
(side . bottom)
(slot . 0)
(centaur-tabs-local-mode 1))
("\\*Faces\\*"
(display-buffer-in-side-window)
(window-height . 0.25)
(side . bottom)
(slot . 1)
(centaur-tabs-local-mode 1))
))
(add-hook 'shell-mode-hook 'centaur-tabs-local-mode)
(add-hook 'eshell-mode-hook 'centaur-tabs-local-mode)
(add-hook 'help-mode-hook 'centaur-tabs-local-mode)
#+END_SRC
* Functions
** General

Loading…
Cancel
Save