Wrangle window splitting behaviour

This commit is contained in:
Evie Litherland-Smith 2023-11-15 08:47:04 +00:00
parent e1e1218a53
commit 4727f60def
2 changed files with 15 additions and 1 deletions

View file

@ -45,6 +45,11 @@
;; Make shebang (#!) file executable when saved ;; Make shebang (#!) file executable when saved
(add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p) (add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
(setq even-window-sizes nil
display-buffer-base-action '((display-buffer-reuse-window
display-buffer-same-window)
(reusable-frames . t)))
(when (require 'package nil :noerror) (when (require 'package nil :noerror)
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/")) (add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
@ -93,9 +98,9 @@
truncate-partial-width-windows nil) truncate-partial-width-windows nil)
(menu-bar-mode -1) (menu-bar-mode -1)
(tab-bar-mode -1)
(tool-bar-mode -1) (tool-bar-mode -1)
(scroll-bar-mode -1) (scroll-bar-mode -1)
(tab-bar-mode +1)
(line-number-mode +1) (line-number-mode +1)
(column-number-mode +1) (column-number-mode +1)
(global-display-line-numbers-mode -1) (global-display-line-numbers-mode -1)

View file

@ -54,6 +54,15 @@
(add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p) (add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
#+END_SRC #+END_SRC
** Control window splitting
#+begin_src emacs-lisp
(setq even-window-sizes nil
display-buffer-base-action '((display-buffer-reuse-window
display-buffer-same-window)
(reusable-frames . t)))
#+end_src
** package-archive with priorities ** package-archive with priorities
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(when (require 'package nil :noerror) (when (require 'package nil :noerror)