Dotfiles/.doom.d/config.el

136 lines
5.6 KiB
EmacsLisp
Raw Normal View History

2024-05-26 22:45:08 +02:00
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
2024-09-05 23:31:04 +02:00
(setq user-full-name "Emma Nora Theuer"
user-mail-address "kontakt@entheuer.de")
2024-05-26 22:45:08 +02:00
;; Doom exposes five (optional) variables for controlling fonts in Doom:
;;
;; - `doom-font' -- the primary font to use
;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable)
;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for
;; presentations or streaming.
2024-09-05 23:31:04 +02:00
;; - `doom-symbol-font' -- for symbols
2024-05-26 22:45:08 +02:00
;; - `doom-serif-font' -- for the `fixed-pitch-serif' face
;;
;; See 'C-h v doom-font' for documentation and more examples of what they
;; accept. For example:
;;
2024-09-05 23:31:04 +02:00
(setq doom-font (font-spec :family "Comic Code Ligatures" :size 14)
doom-variable-pitch-font (font-spec :family "Comic Code Ligatures" :size 16))
2024-05-26 22:45:08 +02:00
;;
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
;; refresh your font settings. If Emacs still can't find your font, it likely
;; wasn't installed correctly. Font issues are rarely Doom issues!
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
2024-09-05 23:31:04 +02:00
(setq doom-theme 'doom-one)
2024-05-26 22:45:08 +02:00
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type t)
;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/")
2024-09-05 23:31:04 +02:00
(after! org
(org-wild-notifier-mode)
(setq alert-default-style 'libnotify
org-wild-notifier-alert-time '(0)
)
2024-09-05 23:31:04 +02:00
(setq org-agenda-files '("~/org/agenda.org")))
(setq
;; org-fancy-priorities-list '("[A]" "[B]" "[C]")
org-fancy-priorities-list '("" "" "🟩")
org-priority-faces
'((?A :foreground "#ff6c6b" :weight bold)
(?B :foreground "#98be65" :weight bold)
(?C :foreground "#c678dd" :weight bold))
org-agenda-block-separator 8411)
(setq org-agenda-custom-commands
'(("v" "A better agenda view"
((tags "PRIORITY=\"A\""
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
(org-agenda-overriding-header "High-priority unfinished tasks:")))
(tags "PRIORITY=\"B\""
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
(org-agenda-overriding-header "Medium-priority unfinished tasks:")))
(tags "PRIORITY=\"C\""
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
(org-agenda-overriding-header "Low-priority unfinished tasks:")))
(tags "customtag"
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
(org-agenda-overriding-header "Tasks marked with customtag:")))
(agenda "")
(alltodo "")))))
2024-05-26 22:45:08 +02:00
;; Whenever you reconfigure a package, make sure to wrap your config in an
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
;;
;; (after! PACKAGE
;; (setq x y))
;;
;; The exceptions to this rule:
;;
;; - Setting file/directory variables (like `org-directory')
;; - Setting variables which explicitly tell you to set them before their
;; package is loaded (see 'C-h v VARIABLE' to look up their documentation).
;; - Setting doom variables (which start with 'doom-' or '+').
;;
;; Here are some additional functions/macros that will help you configure Doom.
;;
;; - `load!' for loading external *.el files relative to this one
;; - `use-package!' for configuring packages
;; - `after!' for running code after a package has loaded
;; - `add-load-path!' for adding directories to the `load-path', relative to
;; this file. Emacs searches the `load-path' when you load packages with
;; `require' or `use-package'.
;; - `map!' for binding new keys
;;
;; To get information about any of these functions/macros, move the cursor over
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
;; This will open documentation for it, including demos of how they are used.
;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
;; etc).
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
2024-09-05 23:31:04 +02:00
;; Because I'm evil
(use-package! ranger
2024-05-26 22:45:08 +02:00
:config
2024-09-05 23:31:04 +02:00
(setq ranger-show-hidden t) ;; Show hidden files
(setq ranger-cleanup-on-disable t) ;; Cleanup buffers when disabled
(setq ranger-modify-header t) ;; Show the header line
(setq ranger-override-dired t) ;; Use ranger instead of dired
(setq ranger-max-preview-size 10) ;; Max size for file previews in MB
)
;; I hardly use this nowadays but it's still good to have around
(use-package eradio
:init
(setq eradio-player '("mpv" "--no-video" "--no-terminal"))
:config
(setq eradio-channels '(
("R/a/dio" . "https://relay0.r-a-d.io/main.mp3")
)
)
)
;; This defines Keybinds for eradio
(map! :leader (:prefix ("r" . "eradio") :desc "Play a radio channel" "p" 'eradio-play))
(map! :leader (:prefix ("r" . "eradio") :desc "Stop the radio player" "s" 'eradio-stop))
(map! :leader (:prefix ("r" . "eradio") :desc "Toggle the radio player" "t" 'eradio-toggle))