nixfleet/users/profiles/emacs/emacs.d/config/aesthetics.el
Andrea Ciceri 6791cb51a2
Various
- firewall rule for VNC for `pc` host
- `go-translate` emacs package with custom bindings
- `magit-delta` to improve diffs readability with `magit` through
  `delta`
- `fira-code-mode` enabled only in `prog-mode`
- `mpv` is spawned by `qutebrowser` without waiting for video being
  loaded
2022-04-30 14:07:16 +02:00

74 lines
2 KiB
EmacsLisp

(use-package modus-themes
:init
(setq
modus-themes-region '(bg-only no-extend))
(modus-themes-load-themes)
:config
(modus-themes-load-operandi) ;white theme
;; (modus-themes-load-vivendi) ;black theme
:bind ("<f5>" . modus-themes-toggle)
)
(use-package fira-code-mode
:after all-the-icons
;;:custom (fira-code-mode-disabled-ligatures '("x")) ;; List of ligatures to turn off
:config
:hook ((prog-mode . (lambda () (progn (fira-code-mode) (set-fontset-font t '(#Xe100 . #Xe16f) "Fira Code Symbol"))))))
(use-package visual-fill-column
:commands (visual-fill-column-mode)
:hook
(markdown-mode . activate-visual-fill-column)
(org-mode . activate-visual-fill-column)
:init
(defun activate-visual-fill-column ()
(interactive)
(setq-local fill-column 80)
(visual-line-mode t)
(visual-fill-column-mode t))
:config
(setq-default visual-fill-column-center-text t
visual-fill-column-fringes-outside-margins nil))
(use-package minimap
:custom ((minimap-window-location 'right))
:bind ("<f7>" . minimap-mode))
(use-package good-scroll
:config (good-scroll-mode 1)
:bind (("<next>" . #'good-scroll-up-full-screen)
("<prior>" . #'good-scroll-down-full-screen)))
(use-package rainbow-identifiers
;; :hook ((prog-mode . rainbow-identifiers-mode))
)
;; To move in a different config file
(when (string-equal system-type "darwin")
(set-face-attribute 'default nil :height 150)
(setq mac-command-modifier 'ctrl))
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1))
(defalias 'yes-or-no-p 'y-or-n-p)
(setq use-dialog-box nil
display-time-format "%H:%M"
column-number-mode t
mouse-autoselect-window t
inhibit-startup-screen t)
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(fringe-mode 1)
(display-time-mode 1)
(global-hl-line-mode 1)
(add-hook 'prog-mode-hook #'display-line-numbers-mode)
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
(add-hook 'prog-mode-hook #'show-paren-mode)
(provide 'aesthetics)