From 9e5528e5196e2d6147f42b7a12dbd7897a020c00 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 30 May 2025 11:06:38 +0200 Subject: [PATCH] Move basic settings from configuration.org to init.el --- configuration.org | 198 ---------------------------------------------- init.el | 171 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 171 insertions(+), 198 deletions(-) diff --git a/configuration.org b/configuration.org index 49040ee..0382fd8 100644 --- a/configuration.org +++ b/configuration.org @@ -1,201 +1,3 @@ -* Set up the very basics - -Now that we have package management configured we can set up defaults more easily. This includes every builtin packages, font faces, and the like. - -#+begin_src emacs-lisp -#+end_src - -** Set Org’s main directory - -Since a lot of packages (org-projectile, org-caldav, etc.) rely on it, it needs to be set as early as possible. - -#+begin_src emacs-lisp -(setq org-directory (expand-file-name "org-mode" user-documents-directory)) -#+end_src - -** Set up my personal keymap - -I set it up at the beginning so i can use it with ~use-package~ invocations from early on - -This might (should?) become a [[*general][general]] map later. - -#+begin_src emacs-lisp -(defvar gpolonkai/pers-map (make-sparse-keymap) - "My own, personal, keymap!") -(define-prefix-command 'gpolonkai/pers-map) -(define-key ctl-x-map "t" 'gpolonkai/pers-map) -(define-key global-map (kbd "C-t") 'gpolonkai/pers-map) -#+end_src - -** Set up some faces - -#+begin_src emacs-lisp -(use-package faces - :ensure nil - :custom-face - (default ((t (:family "Fira Code Retina" :foundry "simp" :slant normal :weight normal :height 100 :width normal)))) - (trailing-whitespace ((t (:inherit nil :background "red3"))))) -#+end_src - -*** Fira Code comes with nice ligatures, let’s use them! - -#+begin_src emacs-lisp -(use-package ligature - :config - ;; Enable the "www" ligature in every possible major mode - (ligature-set-ligatures 't '("www")) - ;; Enable traditional ligature support in eww-mode, if the - ;; `variable-pitch' face supports it - (ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi")) - ;; Enable all Cascadia and Fira Code ligatures in programming modes - (ligature-set-ligatures 'prog-mode - '(;; == === ==== => =| =>>=>=|=>==>> ==< =/=//=// =~ - ;; =:= =!= - ("=" (rx (+ (or ">" "<" "|" "/" "~" ":" "!" "=")))) - ;; ;; ;;; - (";" (rx (+ ";"))) - ;; && &&& - ("&" (rx (+ "&"))) - ;; !! !!! !. !: !!. != !== !~ - ("!" (rx (+ (or "=" "!" "\." ":" "~")))) - ;; ?? ??? ?: ?= ?. - ("?" (rx (or ":" "=" "\." (+ "?")))) - ;; %% %%% - ("%" (rx (+ "%"))) - ;; |> ||> |||> ||||> |] |} || ||| |-> ||-|| - ;; |->>-||-<<-| |- |== ||=|| - ;; |==>>==<<==<=>==//==/=!==:===> - ("|" (rx (+ (or ">" "<" "|" "/" ":" "!" "}" "\]" - "-" "=" )))) - ;; \\ \\\ \/ - ("\\" (rx (or "/" (+ "\\")))) - ;; ++ +++ ++++ +> - ("+" (rx (or ">" (+ "+")))) - ;; :: ::: :::: :> :< := :// ::= - (":" (rx (or ">" "<" "=" "//" ":=" (+ ":")))) - ;; // /// //// /\ /* /> /===:===!=//===>>==>==/ - ("/" (rx (+ (or ">" "<" "|" "/" "\\" "\*" ":" "!" - "=")))) - ;; .. ... .... .= .- .? ..= ..< - ("\." (rx (or "=" "-" "\?" "\.=" "\.<" (+ "\.")))) - ;; -- --- ---- -~ -> ->> -| -|->-->>->--<<-| - ("-" (rx (+ (or ">" "<" "|" "~" "-")))) - ;; *> */ *) ** *** **** - ("*" (rx (or ">" "/" ")" (+ "*")))) - ;; www wwww - ("w" (rx (+ "w"))) - ;; <> >->--<<-| + ("-" (rx (+ (or ">" "<" "|" "~" "-")))) + ;; *> */ *) ** *** **** + ("*" (rx (or ">" "/" ")" (+ "*")))) + ;; www wwww + ("w" (rx (+ "w"))) + ;; <>