emacs.d/style.el

94 lines
2.4 KiB
EmacsLisp
Raw Normal View History

2022-11-20 16:56:34 +01:00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; style.el ;;;;
;;;; purely aesthetic changes ;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Prettify
(global-prettify-symbols-mode 1)
;; Font
2023-07-25 11:16:50 +02:00
(setq use-default-font-for-symbols nil)
(add-to-list 'default-frame-alist '(font . "SAX2"))
(set-face-attribute 'default nil :height 120)
2022-11-20 16:56:34 +01:00
;; Highlight long lines
2023-07-25 11:16:50 +02:00
(setq whitespace-line-column 120)
2022-11-20 16:56:34 +01:00
(setq whitespace-style '(face lines-tail))
(add-hook 'prog-mode-hook 'whitespace-mode)
;; Line numbers
(setq display-line-numbers-type 'relative)
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
;; Tool bar mode
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
2022-11-20 16:56:34 +01:00
;; Images
(setq image-use-external-converter t)
;; Theme
2023-07-25 11:16:50 +02:00
(load-theme 'solarized-dark-high-contrast t)
2022-11-20 16:56:34 +01:00
;; Dashboard
(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)
(require 'dashboard)
(dashboard-setup-startup-hook)
(setq dashboard-center-content t)
2023-07-25 11:16:50 +02:00
(setq dashboard-startup-banner (path "style/cat.png"))
2022-11-20 16:56:34 +01:00
(setq dashboard-banner-logo-title "Welcome to EVIL")
2022-11-22 23:49:42 +01:00
(setq dashboard-set-heading-icons t)
(setq dashboard-set-file-icons t)
2022-11-20 16:56:34 +01:00
(setq dashboard-show-shortcuts nil)
2022-11-22 23:49:42 +01:00
(setq dashboard-filter-agenda-entry 'dashboard-no-filter-agenda)
2023-07-25 11:16:50 +02:00
(setq dashboard-footer-messages '("λf. (λx. f (x x)) (λx. f (x x))"))
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*")))
2022-11-20 16:56:34 +01:00
(when (display-graphic-p)
(require 'all-the-icons))
;; Modeline
(require 'doom-modeline)
(doom-modeline-mode 1)
(setq doom-modeline-hud 1)
(custom-set-faces
'(mode-line ((t (:underline nil :overline nil))))
'(mode-line-inactive ((t (:underline nil :overline nil)))))
;; Dired
(add-hook 'dired-mode-hook 'all-the-icons-dired-mode)
2022-11-21 18:33:55 +01:00
;; Org
2022-11-22 23:49:42 +01:00
(require 'org-superstar)
(add-hook 'org-mode-hook (lambda ()
(org-superstar-mode 1)
(org-fragtog-mode 1)
(org-indent-mode 1)
(visual-line-mode)
(writeroom-mode)))
2022-11-21 18:33:55 +01:00
(setq org-format-latex-options '(:scale 1.5))
2022-11-22 23:49:42 +01:00
(setq org-agenda-start-on-weekday 1)
2023-01-10 19:29:35 +01:00
(add-hook 'markdown-mode-hook (lambda ()
(visual-line-mode)
(writeroom-mode)))
2023-02-05 17:07:29 +01:00
;; LaTeX
(add-hook 'latex-mode-hook (lambda ()
(prettify-symbols-mode)
(visual-line-mode)
(writeroom-mode)))
2023-02-28 15:41:35 +01:00
;; Transparent
(set-frame-parameter (selected-frame) 'alpha '(100 . 100))
(add-to-list 'default-frame-alist '(alpha . (100 . 100)))
2023-07-25 11:16:50 +02:00
;; Allow any size
(setq frame-resize-pixelwise t)