From f0a1783099d246e7e8b12fc0469e4b8eed7f0ce4 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sat, 4 Mar 2023 12:02:11 +0200 Subject: [PATCH] Improve the doom configs :) --- .config/doom/.gitignore | 5 ---- .config/doom/config.el | 61 +++++++++++++++++++++++----------------- .config/doom/config.org | 0 .config/doom/init.el | 58 ++++++++++++++++++++------------------ .config/doom/packages.el | 5 ---- 5 files changed, 66 insertions(+), 63 deletions(-) delete mode 100644 .config/doom/.gitignore delete mode 100644 .config/doom/config.org diff --git a/.config/doom/.gitignore b/.config/doom/.gitignore deleted file mode 100644 index 7d20dba..0000000 --- a/.config/doom/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.DS_Store -.idea -*.log -tmp/ -custom.el diff --git a/.config/doom/config.el b/.config/doom/config.el index 0e0f67b..1224e5f 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -6,37 +6,46 @@ ;; Some functionality uses this to identify you, e.g. GPG configuration, email ;; clients, file templates and snippets. It is optional. -(setq user-full-name "John Doe" - user-mail-address "john@doe.com") +(setq user-full-name "Anas Elgarhy" + user-mail-address "anas.elgarhy.dev@gmail.com") -;; 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. -;; - `doom-unicode-font' -- for unicode glyphs -;; - `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: -;; -;;(setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light) -;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13)) -;; -;; 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: -(setq doom-theme 'doom-one) + + ;; 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: + ;doom-theme 'doom-xcode + ;doom-theme 'doom-one + ;doom-theme 'consult-theme + ;doom-theme 'doom-henna +(setq doom-theme 'doom-dracula) + + + ;; 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. + ;; - `doom-unicode-font' -- for unicode glyphs + ;; - `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: + ;; + ;; (setq doom-font (font-spec :family "FiraCode Nerd Font" :size 12 :weight 'semi-light)) + + ;; Defult directory + (setq default-directory "~") + + ;; Maps +(map! :ne "M-/" #'comment-or-uncomment-region) + ;; (map! :ne "SPC / r" #'deadgrep) + ;; (map! :ne "SPC n b" #'org-brain-visualize) ;; 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) +(setq display-line-numbers-type 'relative) ;; 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! diff --git a/.config/doom/config.org b/.config/doom/config.org deleted file mode 100644 index e69de29..0000000 diff --git a/.config/doom/init.el b/.config/doom/init.el index 3a3645d..1cec55e 100644 --- a/.config/doom/init.el +++ b/.config/doom/init.el @@ -21,34 +21,38 @@ ;;layout ; auie,ctsrnm is the superior home row :completion - (company +childframe) ; the ultimate code completion backend + (company ; the ultimate code completion backend + +tng ; a snazzy tab completion backend for Emacs + +auto ; as-you-type code completion + +childframe ; a nicer company UI (Emacs 26+ only) + ) helm ; the *other* search engine for love and life ;;ido ; the other *other* search engine... - ;;ivy ; a search engine for love and life + (ivy +fuzzy) ; a search engine for love and life vertico ; the search engine of the future :ui - ;;deft ; notational velocity for Emacs + deft ; notational velocity for Emacs doom ; what makes DOOM look the way it does doom-dashboard ; a nifty splash screen for Emacs - ;;doom-quit ; DOOM quit-message prompts when you quit Emacs + doom-quit ; DOOM quit-message prompts when you quit Emacs (emoji +unicode) ; 🙂 hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW - ;;hydra - ;;indent-guides ; highlighted indent columns - ;;ligatures ; ligatures and symbols to make your code pretty again - ;;minimap ; show a map of the code on the side + hydra + indent-guides ; highlighted indent columns + ligatures ; ligatures and symbols to make your code pretty again + minimap ; show a map of the code on the side modeline ; snazzy, Atom-inspired modeline, plus API - ;;nav-flash ; blink cursor line after big motions + nav-flash ; blink cursor line after big motions ;;neotree ; a project drawer, like NERDTree for vim ophints ; highlight the region an operation acts on (popup +defaults) ; tame sudden yet inevitable temporary windows - ;;tabs ; a tab bar for Emacs - ;;treemacs ; a project drawer, like neotree but cooler - ;;unicode ; extended unicode support for various languages + tabs ; a tab bar for Emacs + treemacs ; a project drawer, like neotree but cooler + unicode ; extended unicode support for various languages (vc-gutter +pretty) ; vcs diff in the fringe vi-tilde-fringe ; fringe tildes to mark beyond EOB - ;;window-select ; visually switch windows + window-select ; visually switch windows workspaces ; tab emulation, persistence & separate workspaces ;;zen ; distraction-free coding or writing @@ -59,17 +63,17 @@ (format +onsave) ; automated prettiness ;;god ; run Emacs commands without modifier keys ;;lispy ; vim for lisp, for people who don't like vim - ;;multiple-cursors ; editing in many places at once - ;;objed ; text object editing for the innocent + multiple-cursors ; editing in many places at once + objed ; text object editing for the innocent ;;parinfer ; turn lisp into python, sort of - ;;rotate-text ; cycle region at point between text candidates + rotate-text ; cycle region at point between text candidates snippets ; my elves. They type so I don't have to - ;;word-wrap ; soft wrapping with language-aware indent + word-wrap ; soft wrapping with language-aware indent :emacs - dired ; making dired pretty [functional] + (dired +icons) ; making dired pretty [functional] electric ; smarter, keyword-based electric-indent - ;;ibuffer ; interactive buffer management + ibuffer ; interactive buffer management undo ; persistent, smarter undo for your inevitable mistakes vc ; version-control and Emacs, sitting in a tree @@ -86,18 +90,18 @@ :tools ;;ansible - ;;biblio ; Writes a PhD for you (citation needed) + biblio ; Writes a PhD for you (citation needed) debugger ; FIXME stepping through code, to help you add bugs - ;;direnv - ;;docker + direnv + docker editorconfig ; let someone else argue about tabs vs spaces - ;;ein ; tame Jupyter notebooks with emacs + ein ; tame Jupyter notebooks with emacs (eval +overlay) ; run code, run (also, repls) - ;;gist ; interacting with github gists + gist ; interacting with github gists lookup ; navigate your code and its documentation lsp ; M-x vscode magit ; a git porcelain for Emacs - ;;make ; run make tasks from Emacs + make ; run make tasks from Emacs ;;pass ; password manager for nerds pdf ; pdf enhancements ;;prodigy ; FIXME managing external services & code builders @@ -105,7 +109,7 @@ taskrunner ; taskrunner for all your projects ;;terraform ; infrastructure as code ;;tmux ; an API for interacting with tmux - ;;tree-sitter ; syntax and parsing, sitting in a tree... + tree-sitter ; syntax and parsing, sitting in a tree... ;;upload ; map local to remote projects via ssh/ftp :os @@ -187,7 +191,7 @@ everywhere ; *leave* Emacs!? You must be joking ;;irc ; how neckbeards socialize (rss +org) ; emacs as an RSS reader - twitter ; twitter client https://twitter.com/vnought + ;;twitter ; twitter client https://twitter.com/vnought :config ;;literate diff --git a/.config/doom/packages.el b/.config/doom/packages.el index fcf5bce..7cf6a3c 100644 --- a/.config/doom/packages.el +++ b/.config/doom/packages.el @@ -56,8 +56,3 @@ ; Wakatime (package! wakatime-mode :recipe (:host github :repo "wakatime/wakatime-mode" :files ("*.el"))) - -; Treemacs -(package! treemacs) -; Treemacs evil -(package! treemacs-evil)