From 440c98d6d7c8f0f09f14380985fdabf63caba59e Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 28 Oct 2020 21:17:48 -0300 Subject: Upgraded doom emacs --- .doom.d/config.el | 83 +++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 49 deletions(-) (limited to '.doom.d/config.el') diff --git a/.doom.d/config.el b/.doom.d/config.el index b4829d19..aadc0259 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -1,17 +1,11 @@ -;; -;; | '__/ _ \ / _` / __| Roger González -;; | | | (_) | (_| \__ \ https://rogs.me -;; |_| \___/ \__, |___/ https://git.rogs.me -;; |___/ -;; ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- ;; Place your private configuration here! Remember, you do not need to run 'doom -;; refresh' after modifying this file! +;; sync' after modifying this file! -;; These are used for a number of things, particularly for GPG configuration, -;; some email clients, file templates and snippets. +;; Some functionality uses this to identify you, e.g. GPG configuration, email +;; clients, file templates and snippets. (setq user-full-name "Roger Gonzalez" user-mail-address "roger@rogs.me") @@ -20,56 +14,55 @@ ;; ;; + `doom-font' ;; + `doom-variable-pitch-font' -;; + `doom-big-font' -- used for `doom-big-font-mode' +;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for +;; presentations or streaming. ;; ;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd ;; font string. You generally only need these two: -;; test +;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light) +;; doom-variable-pitch-font (font-spec :family "sans" :size 13)) (setq doom-font (font-spec :family "Source Code Pro Medium" :size 15) - doom-variable-pitch-font (font-spec :family "sans")) + doom-variable-pitch-font (font-spec :family "sans") + doom-big-font (font-spec :family "Source Code Pro Medium" :size 24)) + +(after! doom-themes + (setq doom-themes-enable-bold t + doom-themes-enable-italic t)) +(custom-set-faces! + '(font-lock-comment-face :slant italic) + '(font-lock-keyword-face :slant italic)) ;; 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. These are the defaults. -(setq doom-theme 'doom-material) 4 +;; `load-theme' function. This is the default: -;; If you intend to use org, it is recommended you change this! -(setq org-directory "~/org") +(setq doom-theme 'doom-material) -;; If you want to change the style of line numbers, change this to `relative' or -;; `nil' to disable it: +;; 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/") + +;; 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 'relative) ;; Here are some additional functions/macros that could help you configure Doom: ;; ;; - `load!' for loading external *.el files relative to this one -;; - `use-package' for configuring packages +;; - `use-package!' for configuring packages ;; - `after!' for running code after a package has loaded -;; - `add-load-path!' for adding directories to the `load-path', where Emacs -;; looks when you load packages with `require' or `use-package'. +;; - `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 g k'). +;; 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. ;; -;; You can also try 'gd' (or 'C-c g d') to jump to their definition and see how +;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how ;; they are implemented. - -;; Set emacs logo as the default image -(setq - +doom-dashboard-banner-file (expand-file-name "logo.png" doom-private-dir)) - -;; Saves emacs backups in other folder -(setq - backup-by-copying t ; don't clobber symlinks - backup-directory-alist '(("." . "~/.emacs_backups")) ; don't litter my fs tree - delete-old-versions t - kept-new-versions 6 - kept-old-versions 2 - version-control t) ; use versioned backups - ;; WhiteSpace Cleanup (global-whitespace-cleanup-mode) @@ -177,7 +170,7 @@ ;; C: Delegate it ;; D: Just an idea (setq org-highest-priority ?A) - (setq org-lowest-priority ?D) + (setq org-lowest-priority ?D) (setq org-default-priority ?B) (setq org-priority-faces '((?A . (:foreground "white" :background "dark red" :weight bold)) (?B . (:foreground "white" :background "dark green" :weight bold)) @@ -195,7 +188,7 @@ ("ps" "Scheduled" entry (file+headline "~/org/personal.org" "Captured") (file "~/org/templates/scheduled-task.txt")) - ("pl" "Logbook entry for Personal" entry (file+datetree "logbook-personal.org") "** %U - %^{Activity} :LOG:") + ("pl" "Logbook entry for Personal" entry (file+datetree "logbook-personal.org") "** %U - %^{Activity} :LOG:") ;; Massive templates ("m" "Templates for Massive") ("mc" "Templates for CocaCola") @@ -211,7 +204,7 @@ ("mck" "New Kafein mistake" entry (file+datetree "~/org/Massive/CocaCola/kafein-errors.org") (file "~/org/templates/kafein-errors.txt")) - ("ml" "Logbook entry for Massive" entry (file+datetree "logbook-work.org") "** %U - %^{Activity} :LOG:") + ("ml" "Logbook entry for Massive" entry (file+datetree "logbook-work.org") "** %U - %^{Activity} :LOG:") ;; Tarmac templates ("t" "Templates for Tarmac") ("tv" "Templates for Volition") @@ -227,7 +220,7 @@ ("tve" "New EOD email" entry (file+datetree "~/org/Tarmac/Volition/eod-emails.org") (file "~/org/templates/tarmac-eod-email-template.txt")) - ("tl" "Logbook entry for Tarmac" entry (file+datetree "~/org/Tarmac/logbook-tarmac.org") "** %U - %^{Activity} :LOG:") + ("tl" "Logbook entry for Tarmac" entry (file+datetree "~/org/Tarmac/logbook-tarmac.org") "** %U - %^{Activity} :LOG:") ))) ;; Enforce ordered tasks (setq org-enforce-todo-dependencies t) @@ -265,11 +258,3 @@ (setq lsp-pyls-plugins-pycodestyle-enabled nil) (setq lsp-pyls-configuration-sources "pep8") (add-hook 'before-save-hook 'lsp-format-buffer)) - -;; Setting up pyvenv. On each project, run add-dir-local-variable and specify the virtualenv location -;; https://blog.allardhendriksen.nl/posts/tracking-project-virtual-environments-with-pyvenv-tracking-mode/ -(use-package pyvenv - :ensure t - :init - (pyvenv-mode 1) - (pyvenv-tracking-mode 1)) -- cgit v1.2.3