82 lines
2.6 KiB
EmacsLisp
82 lines
2.6 KiB
EmacsLisp
;; rainbow-delimiters
|
|
(use-package rainbow-delimiters
|
|
:hook (prog-mode . rainbow-delimiters-mode))
|
|
|
|
;; theme
|
|
(use-package kanagawa-themes
|
|
:init
|
|
(load-theme 'kanagawa-dragon t))
|
|
|
|
;; moody
|
|
(use-package moody
|
|
:config
|
|
(setq x-underline-at-descent-line t)
|
|
(moody-replace-mode-line-buffer-identification)
|
|
(moody-replace-vc-mode)
|
|
(moody-replace-eldoc-minibuffer-message-function))
|
|
|
|
(use-package dashboard
|
|
:ensure t
|
|
:config
|
|
(setq dashboard-banner-logo-title "We are all connected"
|
|
dashboard-startup-banner 'logo
|
|
dashboard-center-content t
|
|
dashboard-show-shortcuts t
|
|
dashboard-set-navigator t
|
|
dashboard-set-heading-icons t
|
|
dashboard-set-file-icons t
|
|
initial-buffer-choice (lambda () (get-buffer "*dashboard*"))
|
|
dashboard-projects-switch-function 'projectile-switch-project-by-name
|
|
|
|
dashboard-items '((recents . 15)
|
|
(agenda . 10)
|
|
(projects . 10)))
|
|
(dashboard-setup-startup-hook)
|
|
|
|
:init
|
|
(add-hook 'after-init-hook 'dashboard-refresh-buffer))
|
|
|
|
(use-package git-gutter-fringe
|
|
:hook ((prog-mode . git-gutter-mode)
|
|
(org-mode . git-gutter-mode)
|
|
(markdown-mode . git-gutter-mode)
|
|
(latex-mode . git-gutter-mode)))
|
|
|
|
(use-package ligature
|
|
:config
|
|
(ligature-set-ligatures 'prog-mode
|
|
'("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||=" "||>"
|
|
":::" "::=" "=:=" "===" "==>" "=!=" "=>>" "=<<" "=/=" "!=="
|
|
"!!." ">=>" ">>=" ">>>" ">>-" ">->" "->>" "-->" "---" "-<<"
|
|
"<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->"
|
|
"<--" "<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_(" "..<"
|
|
"..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~="
|
|
"~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|"
|
|
"[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:"
|
|
">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:"
|
|
"<$" "<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#=" "#!"
|
|
"##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?" "+>" "++" "?:"
|
|
"?=" "?." "??" ";;" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
|
"\\\\" "://"))
|
|
(global-ligature-mode t))
|
|
|
|
(setq-default fill-column 80)
|
|
(display-fill-column-indicator-mode 1)
|
|
|
|
;; font
|
|
(set-frame-font "Jetbrains Mono 12" nil t)
|
|
(setq frame-title-format nil)
|
|
|
|
;; olivetti
|
|
(use-package olivetti
|
|
:config
|
|
(setq olivetti-body-width 94)
|
|
:init
|
|
(add-hook 'text-mode-hook 'olivetti-mode))
|
|
|
|
;; transparency
|
|
(set-frame-parameter nil 'alpha-background 70)
|
|
(add-to-list 'default-frame-alist '(alpha-background . 70))
|
|
|
|
(provide 'setup-appearance)
|