aboutsummaryrefslogtreecommitdiff
path: root/+ui.el
blob: eed34e91d77bbe41bf8e7d7370f64bfea4fe3dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
;;; $DOOMDIR/+ui.el -*- lexical-binding: t; -*-
(load! "+splash")

(defun +splash-initial-buffer ()
  (splash-screen)
  (get-buffer "*splash*"))

(setq doom-fallback-buffer-name "*splash*"
      initial-buffer-choice #'+splash-initial-buffer)

(defadvice! +splash-regenerate-if-missing-a (&rest _)
  :before #'doom-fallback-buffer
  (unless (get-buffer "*splash*")
    (splash-screen)))
(add-to-list 'custom-theme-load-path
             "~/.config/doom/extra-themes/")
(setq doom-font (font-spec :family "Berkeley Mono" :size 12.0))
(setq doom-theme 'modus-vivendi)
;; (setq doom-theme 'tango)
(setq display-line-numbers-type t)
(use-package! mood-line
  :config
  (mood-line-mode)
  :custom
  (mood-line-glyph-alist mood-line-glyphs-fira-code))

(defun my/split-window-dynamically ()
  "Split the selected window, choosing orientation by its shape."
  (interactive)
  (select-window
   (if (> (window-total-width) (* 2 (window-total-height)))
       (split-window-right)
     (split-window-below))))
(map! :leader "w s" #'my/split-window-dynamically)
(setq scroll-margin 3)
(use-package! breadcrumb
  :defer t
  :hook
  (prog-mode . breadcrumb-mode)
  :config
  (breadcrumb-mode 1))